/* ============================================================
   Tosamu theme — sampled from images/logo.png
   Edit this block only. The rest of the file reads these tokens.
   Wine #550E11 / #29090B. Gold face #B58E51. Highlight #EED27E.
   ============================================================ */
:root {
    /* Ink and surfaces, lifted from the logo's near-black and deep wine */
    --theme-bg: #0c0708;
    --theme-dark: #0c0708;
    --theme-ink: #070405;
    --theme-dark-mid: #1a0b0d;
    --theme-dark-elevated: #3a1214;
    --theme-surface: #2c0e10;

    /* Burgundy taken from the crest */
    --theme-burgundy: #550e11;
    --theme-burgundy-deep: #29090b;
    --theme-burgundy-rich: #801018;

    /* Gold taken from the letter bevel */
    --theme-gold: #b58e51;
    --theme-gold-soft: #eed27e;
    --theme-gold-pale: #fff0b0;
    --theme-gold-bright: #eed27e;
    --theme-gold-vivid: #eed27e;
    --theme-gold-dark: #865e2b;
    --theme-gold-darker: #5c3e1c;

    /* Text */
    --theme-text: #f6ebd0;
    --theme-text-soft: #e7d3a4;
    --theme-text-muted: #b89a68;
    --theme-text-light: #e7d3a4;
    --theme-text-on-gold: #29090b;

    /* RGB channels: rgba(var(--theme-gold-rgb), 0.4) */
    --theme-gold-rgb: 181, 142, 81;
    --theme-gold-soft-rgb: 238, 210, 126;
    --theme-gold-pale-rgb: 255, 240, 176;
    --theme-burgundy-rgb: 85, 14, 17;
    --theme-panel-rgb: 58, 18, 20;
    --theme-mid-rgb: 26, 11, 13;
    --theme-ink-rgb: 7, 4, 5;
    --theme-muted-rgb: 184, 154, 104;

    /* Lines, glow, elevation */
    --theme-border: rgba(var(--theme-gold-rgb), 0.35);
    --theme-border-strong: rgba(var(--theme-gold-rgb), 0.55);
    --theme-glow: rgba(var(--theme-gold-rgb), 0.32);
    --theme-focus-ring: 0 0 0 0.2rem rgba(var(--theme-gold-rgb), 0.38), 0 8px 24px rgba(var(--theme-gold-rgb), 0.2);
    --theme-shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
    --theme-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --theme-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
    --theme-radius: 12px;

    /* Gradients */
    --theme-panel-gradient: linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.96) 0%, rgba(var(--theme-ink-rgb), 0.98) 100%);
    --theme-btn-gradient: linear-gradient(180deg, #eed27e 0%, #b58e51 48%, #865e2b 100%);
    --theme-btn-gradient-hover: linear-gradient(180deg, #fff0b0 0%, #eed27e 42%, #b58e51 100%);
    --theme-gold-highlight: linear-gradient(180deg, #fff0b0 0%, #b58e51 100%);
    --theme-navbar-gradient: linear-gradient(180deg, rgba(41, 9, 11, 0.98) 0%, rgba(12, 7, 8, 0.98) 100%);
    --theme-table-head: linear-gradient(180deg, #550e11 0%, #29090b 100%);
    --theme-table-odd: rgba(var(--theme-mid-rgb), 0.92);
    --theme-table-even: rgba(var(--theme-ink-rgb), 0.95);

    /* Legacy aliases */
    --theme-brown: #550e11;
    --theme-brown-dark: #0c0708;
}
html, body {
    position: relative;
    overflow-x: hidden;
}

body {
    width: 100%;
    /* footer art lives only on #footer; base matches footer-bg tone */
    background: url(../images/header-bg.jpg) center top no-repeat, var(--theme-dark);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--theme-text);
    line-height: 1.35;
    min-height: 100vh;
}

/* Classic panel typography (Story105-style: serif titles + clean UI body) */
h1, h2, h3, h4, h5, h6,
.main-content .card .card-header h5,
.sidebar .card .card-header p {
    font-family: "Cinzel", "Tajawal", "Times New Roman", serif;
    letter-spacing: 0.02em;
}

a {
    transition: all 0.3s ease;
    color: var(--theme-gold-dark);
    text-decoration: none;
}

a:hover {
    color: var(--theme-gold);
}

a:focus, a:hover, button, button:focus, button:hover, button:active {
    outline: 0 none;
    text-decoration: none;
}

/*a:hover, button:hover, a.active, button.active {
    -webkit-filter: brightness(120%);
    filter: brightness(120%);
    text-decoration: none;
}*/

.floating-icons {
	position: fixed;
	right: 20px;
	left: auto;
	top: 50%;
	transition: all 2s ease;
	-webkit-transition: all 2s ease;
	z-index: 1;
}

.floating-icons .icon {
	padding: 10px;
	transition: all 2s ease;
	-webkit-transition: all 2s ease;
	margin-bottom: 10px;
}

.floating-icons .icon .icon-btn {
	border: 10px solid;
	border-image-slice: 1;
	border-width: 5px;
	border-image-source: linear-gradient(-90deg, rgba(var(--theme-ink-rgb), 1) 0%, rgba(var(--theme-burgundy-rgb), 1) 100%);
	transition: all 2s ease;
	-webkit-transition: all 2s ease;
}

.floating-icons .icon .icon-btn.facebook:hover,
.floating-icons .icon .icon-btn.whatsapp:hover {
	background: linear-gradient(90deg, rgba(var(--theme-ink-rgb), 1) 0%, rgba(var(--theme-burgundy-rgb), 1) 100%);
}

/* Keep main floating social rail on the right in LTR and RTL */
[dir=rtl] .floating-icons {
	right: 20px;
	left: auto;
}

.floating-icons .icon .icon-btn:hover, .floating-icons .icon .icon-btn:focus, .floating-icons .icon .icon-btn:active, .floating-icons .icon .icon-btn.active{
	border-image-source: linear-gradient(0deg, rgba(var(--theme-ink-rgb), 1) 0%, rgba(var(--theme-burgundy-rgb), 1) 100%);
}

.floating-icons .icon .icon-btn {
	height: 50px;
	width: 50px;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(90deg, rgba(var(--theme-ink-rgb), 1) 0%, rgba(var(--theme-burgundy-rgb), 1) 100%);
	display: flex;
	justify-content: center;
    align-items: center;
	transform: rotate(-45deg);
	transition: all 2s ease;
	-webkit-transition: all 2s ease;
	overflow: hidden;
	cursor: pointer;
}

.floating-icons .icon .icon-btn > * {
	transform: rotate(45deg);
	clear: both;
	position: absolute;
	transition: all 2s ease;
	-webkit-transition: all 2s ease;
}


.floating-icons .icon .icon-btn:hover > * {
	background: -webkit-linear-gradient(1deg, rgb(var(--theme-gold-rgb)) 0%, rgb(var(--theme-ink-rgb)) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: all 2s ease;
	-webkit-transition: all 2s ease;
}

#footer, #footer .footer-copyright {
    background-color: transparent;
    color: var(--theme-text-soft);
}

#footer .footer-copyright p, #footer .footer-copyright div {
    color: var(--theme-text-soft);
    font-size: 12px;
}

.dropdown .dropdown-menu {
	border-radius: 0;
	padding: 10px;
	background-color: rgb(0 0 0 / 32%);
	border: none;
}
	
.navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
}

.navbar-light .navbar-toggler {
    color: hsla(0,0%,100%,.5);
    border-color: hsla(0,0%,100%,.1)
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")
}

.navbar .nav-item .nav-link {
    color: var(--theme-gold);
    font-size: 18px;
    text-transform: uppercase;
    padding: 0 26px;
    font-weight: bold;
    display: block;
    height: 80px;
    line-height: 80px;
    position: relative;
}

.navbar .nav-item .nav-link:hover {
    color: var(--theme-gold);
    -webkit-filter: brightness(120%);
    filter: brightness(120%);
    text-decoration: none;
}

.navbar .nav-item .nav-link:after {
    content: "";
    transition: 0.3s;
    height: 0;
    width: 0;
}

.navbar .nav-item .nav-link:hover:after, .navbar .nav-item .nav-link.active:after {
    content: "";
    height: 2px;
    width: 100%;
    bottom: 0;
    left: 0;
    position: absolute;
    background: var(--theme-gold);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
    color: var(--theme-gold);
    -webkit-filter: brightness(120%);
    filter: brightness(120%);
    text-decoration: none;
}

.dropdown-menu {
    margin-top: 0;
}

.dropdown-item {
    color: var(--theme-gold);
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: var(--theme-gold);
}

.dropdown-item:focus, .dropdown-item:hover {
    color: #fff;
    text-decoration: none;
    background-color: var(--theme-gold);
}

.header {
    min-height: 450px;
    display: flex;
}

.server-time {
    background: rgb(var(--theme-ink-rgb));
    width: 280px;
    font: normal 13px/1.2 tahoma, Arial, Verdana;
    color: var(--theme-gold);
    align-self: end;
    padding: 5px 10px;
}

.sidebar-left {
    background: url(../images/sidebar-left-bg.png) right;
}

.sidebar-right {
    background: url(../images/sidebar-right-bg.png) left;
}

.sidebar .status-block {
    position: relative;
    min-height: 126px;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.38);
    background:
        linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.82) 0%, rgba(var(--theme-ink-rgb), 0.9) 100%),
        url(../images/server-bg.jpg) center / cover no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.08),
        0 10px 22px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.sidebar .server {
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 12px;
    text-align: right;
}

.sidebar .server-name {
    color: var(--theme-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.sidebar .progress-barr {
    height: 10px;
    padding: 2px;
    margin: 0.5rem 0 0.7rem;
    position: relative;
    border-radius: 999px;
    background: rgba(var(--theme-ink-rgb), 0.55);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sidebar .progress-barr span {
    height: 100%;
    display: block;
    min-width: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-burgundy) 0%, var(--theme-gold) 55%, var(--theme-gold-soft) 100%);
    box-shadow: 0 0 10px rgba(var(--theme-gold-rgb), 0.3);
}

.sidebar .site-playercount__meta {
    gap: 0.8rem;
    text-align: right;
}

.sidebar .site-playercount__label {
    color: var(--theme-text-soft);
    font-size: 0.85rem;
    font-weight: 700;
}

.sidebar .server .online-players {
    font-weight: 800;
    color: var(--theme-gold-soft);
    font-size: 0.92rem;
}

[dir="rtl"] .sidebar .status-block {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.sidebar .card {
    background: none !important;
}

.sidebar .card .card-header {
    padding: 22px 0 22px 10px;
    position: relative;
    color: var(--theme-gold);
    background-color: transparent;
    border-bottom: none;
}

[dir=rtl] .sidebar .card .card-header:after {
    left: -5px;
    right: auto;
}

.sidebar .card .card-header:after {
    content: "";
    background: url(../images/card-header-after.png) no-repeat;
    background-size: contain;
    width: 52px;
    height: 38px;
    display: block;
    position: absolute;
    right: 2px;
    top: 6px;
}

.sidebar .card .card-header p {
    padding-left: 10px;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

[dir=rtl] .sidebar .card .card-header p {
    padding-right: 10px;
    padding-left: 0;
}

/* Facebook Page Plugin + Discord widget: keep inside column */
.sidebar .sidebar-social-widget .card-body.sidebar-social-widget__body {
    overflow: hidden;
    max-width: 100%;
}
.sidebar .sidebar-social-widget .fb-page,
.sidebar .sidebar-social-widget .fb-page > span,
.sidebar .sidebar-social-widget .fb-page iframe {
    max-width: 100% !important;
}
.sidebar .sidebar-social-widget iframe.discord-server-widget-iframe {
    display: block;
    max-width: 100%;
}

[dir=rtl] .progress {
    height: 1rem;
    line-height: 1;
    font-size: .75rem;
    background-color: #eaecf4;
    border-radius: 0.35rem;
}

.sidebar .server-stats li {
    color: rgb(255, 255, 255);
    padding: 10px 1px 10px 20px;
    background: none;
    border: none;
    border-radius: 1px;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.35);
}

.sidebar li .stats-value {
    color: rgb(255, 255, 255);
    font-weight: 550;
    font-size: 12px;
}

.sidebar .download {
    background: url(../images/download.jpg) center;
    height: 90px;
    font-size: 20px;
    text-shadow: 0 1px 1px rgba(var(--theme-gold-rgb), 0.4);
    color: var(--theme-gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .download .download-text {
    padding-left: 50px;
}

.sidebar .download .download-text b {
    font-weight: 400;
    display: block;
    color: var(--theme-gold);
    font-size: 16px;
    margin-top: 5px;
}

.bright:hover {
    filter: brightness(120%);
}

.btn-gold {
    box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgba(var(--theme-gold-rgb), 0.25), inset 0 -2px 5px 1px var(--theme-burgundy), inset 0 -1px 1px 3px var(--theme-gold-pale);
    background-image: linear-gradient(160deg, var(--theme-burgundy-deep), var(--theme-burgundy), var(--theme-gold-pale), var(--theme-gold), var(--theme-burgundy-deep));
    color: var(--theme-ink);
    text-shadow: 0 2px 2px rgba(var(--theme-gold-pale-rgb), 0.45);
    transition: all .2s ease-in-out;
    background-size: 100% 100%;
    background-position: center;
}

.btn-gold:hover {
    background-size: 150% 150%;
    box-shadow: 0 10px 20px rgb(0 0 0 / 19%), 0 6px 6px rgb(0 0 0 / 23%), inset 0 -2px 5px 1px var(--theme-burgundy), inset 0 -1px 1px 3px var(--theme-gold-pale);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.6);
    color: rgba(var(--theme-ink-rgb), 0.85);
}

.btn-brown {
    color: #fff;
    display: inline-block;
    justify-content: center;
    align-items: center;
    background: url(../images/brown-button.jpg) bottom no-repeat;
    border-radius: 0.3em;
    position: relative;
    transition: .2s all ease;
    text-decoration: none;
    text-align: center;
}

.btn-brown:hover {
    color: #fff;
}

.btn-brown:hover, .btn-brown.active, .btn-gold:hover, .btn-gold.active {
    -webkit-filter: brightness(120%);
    filter: brightness(120%);
    text-decoration: none;
}

/* Discord member list widget (not footer social icon links) */
.discord-widget,
.discord-server-widget,
.sidebar .discord {
    max-height: 350px;
    overflow-y: auto;
}

.discord .discord-name {
    max-width: 70%;
}

.discord .discord-playing {
    max-width: 30%;
}

.dataTable thead, .dataTable tfoot {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, var(--theme-gold)), color-stop(1, var(--theme-gold-dark)));
    color: var(--theme-text-on-gold);
}

.dataTable {
    color: #000;
}

.table a {
    transition: all 0.3s ease;
    color: #bf5252;
    text-decoration: none;
}

.table-bordered, .table-bordered td, .table-bordered th {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination {
    gap: 0.28rem;
}

.page-item {
    margin: 0 !important;
    background: transparent !important;
}

.page-item .page-link,
.page-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem !important;
    margin: 0 !important;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4) !important;
    border-radius: 8px !important;
    background: rgba(var(--theme-mid-rgb), 0.92) !important;
    color: var(--theme-gold-soft) !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.page-item .page-link:hover,
.page-item .page-link:focus,
.page-link:hover,
.page-link:focus {
    z-index: 1;
    background: rgba(var(--theme-gold-rgb), 0.28) !important;
    border-color: var(--theme-gold) !important;
    color: var(--theme-text) !important;
    outline: none;
    box-shadow: none !important;
}

.page-item.active .page-link,
.page-item.active .page-link:hover,
.page-item.active .page-link:focus {
    background: var(--theme-gold) !important;
    border-color: var(--theme-gold) !important;
    color: var(--theme-ink) !important;
    font-weight: 700;
}

.page-item.disabled .page-link,
.page-item.disabled .page-link:hover {
    background: rgba(var(--theme-mid-rgb), 0.55) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.2) !important;
    color: rgba(var(--theme-gold-soft-rgb), 0.45) !important;
    opacity: 1;
}

.btn-link {
    color: var(--theme-gold);
    text-decoration: none;
}

.btn-link:hover, .btn-link.focus, .btn-link:focus {
    color: var(--theme-gold);
    -webkit-filter: brightness(120%);
    filter: brightness(120%);
    text-decoration: none;
}

.box-icon-outline {
    -webkit-text-stroke: 1px var(--theme-gold);
    -webkit-text-fill-color: transparent;
}

.box-small-icon-alt .box-icon {
    border-color: var(--theme-gold);
}

a:hover .box-icon-outline {
    -webkit-text-stroke: 1px var(--theme-gold);
    -webkit-text-fill-color: #fff;
}

.box-small-icon-alt a:hover .box-icon {
    border-color: var(--theme-gold);
    background-color: var(--theme-gold);
}

#footer ul span {
    color: var(--theme-gold);
}

#footer a {
    color: var(--theme-gold-soft);
}

#footer a:focus, #footer a:hover, .table a:hover, .table a:focus {
    -webkit-filter: brightness(120%);
    filter: brightness(140%);
    text-decoration: none;
}

#footer .social-networks a.whatsapp:hover {
    color: #25d366;
    -webkit-filter: none;
    filter: none;
}

#footer h5 {
    color: var(--theme-gold);
}

.toTopBlock {
    background: url(../images/footer-line.png) center top / min(1200px, 100%) auto no-repeat;
    height: 77px;
    padding-top: 16px;
    margin: 0;
}

.toTopBlock span.toTop,
.toTopBlock span {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
}

.main-content > .card {
    height: 100%;
}

.main-content .card img {
    max-width: 100%;
}

.news-stage {
    position: relative;
    margin-bottom: 1rem;
}

.news-stage__frame {
    position: relative;
}

.news-stage__img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-stage__img.is-active,
.news-stage__copy.is-active {
    display: block;
}

.news-stage__copy {
    display: none;
    margin-top: 1rem;
}

.main-content.home-index .news-stage__copy {
    display: none;
}

.main-content.home-index .news-stage__copy.is-active {
    display: block;
}

.main-content .news-stage__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-pale-rgb), 0.75);
    background: var(--theme-btn-gradient);
    color: var(--theme-text-on-gold);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
}

.main-content .news-stage__nav:hover,
.main-content .news-stage__nav:focus {
    color: var(--theme-text-on-gold);
    background: var(--theme-btn-gradient-hover);
    text-decoration: none;
}

.news-stage__nav--prev {
    left: 12px;
}

.news-stage__nav--next {
    right: 12px;
}

@media (max-width: 767.98px) {
    .main-content .news-stage__nav {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .news-stage__nav--prev {
        left: 8px;
    }

    .news-stage__nav--next {
        right: 8px;
    }
}

.card {
    background: url(../images/card/card-center.png) center repeat, #ffffff;
    border-radius: 0;
    border: none;
}

.main-content > .card {
    border-left: none;
}

.main-content .card .card-header {
    background-color: transparent;
    border: none;
    text-transform: uppercase;
}

.main-content .card .card-header h5 {
    color: var(--theme-gold-soft);
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
}

.main-content .card .card-header:after {
    content: "";
    border-bottom: 1px solid var(--theme-gold);
    height: 15px;
    width: 100%;
    display: block;
    box-shadow: 0 1px 0 0 var(--theme-gold);
}

/* Home / latest news (index) */
.main-content.home-index > .card.home-index__panel.hsss {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(var(--theme-gold-rgb), 0.16) 0%, transparent 55%),
        linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.98) 0%, rgba(var(--theme-ink-rgb), 0.99) 100%);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(var(--theme-gold-rgb), 0.12);
}

.main-content.home-index > .card.home-index__panel.hsss::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-gold-rgb), 0.55), rgba(var(--theme-gold-soft-rgb), 0.95), rgba(var(--theme-gold-rgb), 0.55), transparent);
    pointer-events: none;
    z-index: 1;
}

.main-content.home-index .home-index__panel-head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    padding: 1.35rem 1rem 0.65rem;
    text-align: center;
}

.main-content.home-index .home-index__panel-head::after {
    content: "";
    display: block;
    width: min(280px, 70%);
    height: 1px;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-gold-rgb), 0.8), transparent);
}

.main-content.home-index .home-index__panel-head::before {
    content: none !important;
}

.main-content.home-index .home-index__panel-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-soft);
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(var(--theme-gold-rgb), 0.18);
}

.main-content.home-index .home-index__panel-title {
    margin: 0;
    font-family: "Cinzel", "Tajawal", serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--theme-gold-soft) !important;
    background: none;
    -webkit-text-fill-color: var(--theme-gold-soft);
    text-shadow: 0 0 22px rgba(var(--theme-gold-rgb), 0.35);
}

.main-content.home-index .home-index__panel-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.1rem 1.1rem 1.4rem;
    background: transparent;
    color: var(--theme-text-soft);
}

.main-content.home-index .home-index__article {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.32);
    background:
        linear-gradient(165deg, rgba(var(--theme-panel-rgb), 0.96) 0%, rgba(var(--theme-ink-rgb), 0.98) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-content.home-index .home-index__article:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--theme-gold-soft-rgb), 0.55);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(var(--theme-gold-rgb), 0.18);
}

.main-content.home-index .home-index__article-head {
    padding: 1rem 1.1rem 0.85rem;
    background: transparent;
    border: none;
}

.main-content.home-index .home-index__article-head::after {
    content: none !important;
    display: none !important;
}

.main-content.home-index .home-index__article-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.main-content.home-index .home-index__article-link:hover {
    text-decoration: none;
    color: inherit;
}

.main-content.home-index .home-index__article-link:hover .home-index__article-title {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.main-content.home-index .home-index__article-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: "Orbitron", "Oxanium", "Tajawal", monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.3);
    background: rgba(var(--theme-ink-rgb), 0.65);
}

.main-content.home-index .home-index__article-meta i {
    color: var(--theme-gold-soft);
    font-size: 0.75em;
}

.main-content.home-index .home-index__article-title {
    margin: 0;
    font-family: "Cinzel", "Tajawal", serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-text) !important;
    background: none;
    -webkit-text-fill-color: var(--theme-text);
    transition: color 0.15s ease;
}

.main-content.home-index .home-index__article-media {
    display: block;
    margin: 0 1.1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    line-height: 0;
    background: var(--theme-ink);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-content.home-index .home-index__article-media:hover {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.65);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.main-content.home-index .home-index__article-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.main-content.home-index .home-index__article-body {
    padding: 0.95rem 1.1rem 1.15rem;
    color: var(--theme-text-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.94rem;
    line-height: 1.55;
}

.main-content.home-index .home-index__article-prose {
    word-wrap: break-word;
    color: var(--theme-text-soft);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-align: center;
}

.main-content.home-index .home-index__article-prose p,
.main-content.home-index .home-index__article-prose li,
.main-content.home-index .home-index__article-prose span,
.main-content.home-index .home-index__article-prose div {
    color: inherit;
}

.main-content.home-index .home-index__article-prose p:last-child {
    margin-bottom: 0;
}

.main-content.home-index .home-index__article-prose a {
    color: var(--theme-gold-soft);
    font-weight: 600;
}

.main-content.home-index .home-index__article-prose a:hover {
    color: var(--theme-gold);
}

.main-content.home-index .home-index__article-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.18);
}

.main-content.home-index .home-index__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    background: rgba(var(--theme-gold-rgb), 0.12);
    font-family: "Oxanium", "Source Sans 3", "Tajawal", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--theme-gold-soft);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.main-content.home-index .home-index__read-more:hover {
    color: #fff;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.7);
    background: rgba(var(--theme-gold-rgb), 0.22);
    text-decoration: none;
    transform: translateY(-1px);
}

button.home-index__read-more {
    cursor: pointer;
}

.home-news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.home-news-modal[hidden] {
    display: none !important;
}

.home-news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 4, 5, 0.78);
}

.home-news-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    padding: 1.25rem 1.25rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(180deg, var(--theme-dark-elevated) 0%, var(--theme-dark-mid) 48%, var(--theme-ink) 100%);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    color: var(--theme-text-soft);
}

.home-news-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: var(--theme-gold-pale);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.home-news-modal__title {
    margin: 0 2rem 0.35rem 0;
    color: var(--theme-gold-soft);
    font-size: 1.15rem;
    text-align: center;
    text-transform: uppercase;
}

.home-news-modal__date {
    display: block;
    margin-bottom: 0.9rem;
    text-align: center;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
}

.home-news-modal__img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.home-news-modal__body {
    color: var(--theme-text-soft);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: center;
}

.home-news-modal__body a {
    color: var(--theme-gold-soft);
    font-weight: 700;
}

body.home-news-modal-open {
    overflow: hidden;
}

.main-content.home-index .home-index__read-more-icon {
    font-size: 0.75em;
    transition: transform 0.15s ease;
}

.main-content.home-index .home-index__read-more:hover .home-index__read-more-icon {
    transform: translateX(3px);
}

[dir="rtl"] .main-content.home-index .home-index__read-more-icon {
    transform: scaleX(-1);
}

[dir="rtl"] .main-content.home-index .home-index__read-more:hover .home-index__read-more-icon {
    transform: scaleX(-1) translateX(3px);
}

.main-content.home-index .home-index__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 2.5rem 1.25rem;
    border: 1px dashed rgba(var(--theme-gold-rgb), 0.45);
    border-radius: 14px;
    background: rgba(var(--theme-ink-rgb), 0.35);
    text-align: center;
}

.main-content.home-index .home-index__empty-icon {
    font-size: 2.35rem;
    color: rgba(var(--theme-gold-rgb), 0.55);
}

.main-content.home-index .home-index__empty-text {
    margin: 0;
    color: var(--theme-text-soft);
    font-size: 0.95rem;
}

.sidebar .list-group-item {
    background: transparent;
    border-color: var(--theme-gold);
	color: var(--theme-gold);
}

.list-group-item {
    background: linear-gradient(90deg, rgba(var(--theme-ink-rgb), 1) 0%, rgba(var(--theme-burgundy-rgb), 1) 100%);
    border-color: var(--theme-gold);
}

.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: var(--theme-gold);
    border-color: var(--theme-gold);
}

.list-group-item-action:focus, .list-group-item-action:hover {
    color: #fff;
    background-color: var(--theme-gold);
    border-color: var(--theme-gold);
}

.sparks-leaves {
	position: relative;
	z-index: -1;
}

.sparks {
	position: absolute;
    top: 73px;
}

.spark-1 {
  background: url(../images/sparks_1.png);
  width: 350px;
  height: 226px;
  left: -50px;
  bottom: -250px;
  position: absolute;
  animation: 4s spark-1 linear infinite;
}

@keyframes spark-1 {
  0% {
    transform: scale(0.4);
    bottom: -150px;
  }
  33% {
    transform: scale(0.6);
    bottom: -100px;
  }
  66% {
    transform: scale(0.8);
    bottom: -50px;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    bottom: 0px;
    opacity: 0;
  }
}
.spark-2 {
  background: url(../images/sparks_2.png);
  width: 350px;
  height: 390px;
  left: -50px;
  bottom: -400px;
  position: absolute;
  animation: 5s spark-2 linear infinite;
}

@keyframes spark-2 {
  0% {
    transform: scale(0.4);
    bottom: -400px;
  }
  33% {
    transform: scale(0.6);
    bottom: -300px;
  }
  66% {
    transform: scale(0.8);
    bottom: -200px;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    bottom: -100px;
    opacity: 0;
  }
}
.spark-3 {
  background: url(../images/sparks_3.png);
  width: 350px;
  height: 352px;
  left: -50px;
  bottom: -350px;
  position: absolute;
  animation: 5s spark-3 linear infinite;
}

@keyframes spark-3 {
  0% {
    transform: scale(0.4);
    bottom: -350px;
  }
  33% {
    transform: scale(0.6);
    bottom: -240px;
  }
  66% {
    transform: scale(0.8);
    bottom: -130px;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    bottom: -20px;
    opacity: 0;
  }
}

.leaves {
	position: absolute;
    top: 73px;
    left: 10px;
}

.leaves-1 {
  background: url(../images/leaves_1.png);
  width: 300px;
  height: 197px;
  left: 0px;
  bottom: -200px;
  position: absolute;
  animation: 5s leaves-1 linear infinite;
}

@keyframes leaves-1 {
  0% {
    transform: scale(0.7) rotate(0deg);
    bottom: -200px;
    left: 250px;
  }
  33% {
    transform: scale(0.8) rotate(30deg);
    bottom: -100px;
    left: 500px;
  }
  66% {
    transform: scale(0.9 rotate(60deg));
    bottom: 0px;
    left: 750px;
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(90deg);
    bottom: 100px;
    left: 1000px;
    opacity: 0;
  }
}
.leaves-2 {
  background: url(../images/leaves_2.png);
  width: 283px;
  height: 171px;
  left: 0px;
  bottom: -200px;
  position: absolute;
  animation: 5s leaves-2 linear infinite;
}

@keyframes leaves-2 {
  0% {
    transform: scale(0.7) rotate(0deg);
    bottom: -200px;
    left: 250px;
  }
  33% {
    transform: scale(0.8) rotate(-30deg);
    bottom: -100px;
    left: 500px;
  }
  66% {
    transform: scale(0.9) rotate(-60deg);
    bottom: 0px;
    left: 750px;
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-90deg);
    bottom: 100px;
    left: 1000px;
    opacity: 0;
  }
}
.leaves-3 {
  background: url(../images/leaves_3.png);
  width: 324px;
  height: 222px;
  left: 0px;
  bottom: -200px;
  position: absolute;
  animation: 5s leaves-3 linear infinite;
}

@keyframes leaves-3 {
  0% {
    transform: scale(0.7) rotate(0deg);
    bottom: -200px;
    left: 250px;
  }
  33% {
    transform: scale(0.8) rotate(-30deg);
    bottom: -100px;
    left: 500px;
  }
  66% {
    transform: scale(0.9) rotate(-60deg);
    bottom: 0px;
    left: 750px;
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-90deg);
    bottom: 100px;
    left: 1000px;
    opacity: 0;
  }
}

@media all and (max-width: 1399px) {
    .navbar .nav-item .nav-link {
        font-size: 14px;
        padding: 0 15px;
    }
}

@media all and (max-width: 1199px) {
    .sidebar-left {
        background: url(../images/sidebar-left-bg-sm.png) right;
    }

    .sidebar-right {
        background: url(../images/sidebar-right-bg-sm.png) left;
    }
}


@media all and (max-width: 1100px) {
    .navbar .nav-item .nav-link {
        padding: 0 12px;
    }
}

@media all and (max-width: 1000px) {
    .navbar .nav-item .nav-link {
        padding: 0 10px;
    }
}


@media all and (max-width: 991.98px) {
    .header {
        display: block;
        min-height: auto;
        padding: 10rem 0;
    }

    .header .header-logo {
        text-align: center;
    }

    .header .server-time {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar .nav-item .nav-link {
        line-height: 40px;
        height: 40px;
		color: var(--theme-text);
    }
	
	.navbar-light .navbar-nav .active > .nav-link,
	.navbar-light .navbar-nav .nav-link.active,
	.navbar-light .navbar-nav .nav-link.show,
	.navbar-light .navbar-nav .show > .nav-link {
		color: var(--theme-gold);
	}
	
    .navbar .nav-item .nav-link:hover:after, .navbar .nav-item .nav-link.active:after {
        content: none;
    }

    .navbar .navbar-collapse {
        width: 100%;
        position: absolute;
        left: 0;
        top: 73px;
        background: linear-gradient(90deg, rgba(var(--theme-ink-rgb), 1) 0%, rgba(var(--theme-burgundy-rgb), 1) 100%);
        z-index: 1;
    }

}

@media all and (max-width: 767.98px) {

}


a {
    color: var(--theme-gold-soft);
}

a:hover {
    color: var(--theme-gold-pale);
}

#footer,
#footer .footer-copyright,
#footer .footer-copyright p,
#footer .footer-copyright div {
    color: var(--theme-text-light);
}

#footer a {
    color: var(--theme-gold-soft);
}

.sidebar .progress-barr span {
    background: linear-gradient(90deg, var(--theme-burgundy) 0%, var(--theme-gold) 55%, var(--theme-gold-soft) 100%);
}

.table a {
    color: var(--theme-gold-soft);
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: var(--theme-text-on-gold);
    border-color: var(--theme-gold-dark);
    background: var(--theme-btn-gradient);
    box-shadow: var(--theme-shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--theme-text-on-gold);
    border-color: var(--theme-gold-vivid);
    background: var(--theme-btn-gradient-hover);
    box-shadow: var(--theme-focus-ring);
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: var(--theme-focus-ring);
}

/* Ranking section color harmony */
.btn-toolbar .btn-outline-dark {
    color: var(--theme-text-soft);
    border-color: var(--theme-gold-dark);
    background: linear-gradient(180deg, var(--theme-surface) 0%, var(--theme-dark) 100%);
}

.btn-toolbar .btn-outline-dark:hover,
.btn-toolbar .btn-outline-dark:focus {
    color: var(--theme-text);
    border-color: var(--theme-gold);
    background: linear-gradient(180deg, var(--theme-burgundy-deep) 0%, var(--theme-dark-elevated) 100%);
}

.btn-toolbar .btn-outline-dark.active,
.btn-toolbar .btn-outline-dark:not(:disabled):not(.disabled):active {
    color: var(--theme-text-on-gold);
    border-color: var(--theme-gold-soft);
    background: var(--theme-gold-highlight);
}

.result-area .table {
    color: var(--theme-text-soft);
    border-color: var(--theme-border);
}

.result-area .table thead th {
    color: var(--theme-text);
    border-color: rgba(var(--theme-gold-rgb), 0.28);
    background: var(--theme-table-head);
}

.result-area .table-bordered td,
.result-area .table-bordered th {
    border-color: rgba(var(--theme-gold-rgb), 0.18);
}

.result-area .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--theme-table-odd);
}

.result-area .table-striped tbody tr:nth-of-type(even) {
    background-color: var(--theme-table-even);
}

.result-area .ranking-datatable.table-striped tbody tr:nth-of-type(odd),
.result-area .ranking-datatable.table-striped tbody tr:nth-of-type(even) {
    color: var(--theme-text);
}

.result-area .table-hover tbody tr:hover {
    color: var(--theme-text);
    background-color: rgba(var(--theme-gold-rgb), 0.24);
}

.result-area .table a {
    color: var(--theme-gold-soft);
}

.result-area .table a:hover {
    color: var(--theme-text);
}

.result-area .dataTables_wrapper .dataTables_info,
.result-area .dataTables_wrapper .dataTables_length label,
.result-area .dataTables_wrapper .dataTables_filter label {
    color: var(--theme-text-muted);
}

/* —— Donations (compact, same language as Downloads) —— */
.donation-page .dl-hero {
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem 0.85rem;
    border-radius: 12px;
}

.donation-page .dl-hero--with-bogo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.1rem;
}

.donation-page .dl-hero__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.donation-page .dl-hero-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
}

.donation-page .dl-hero-title {
    margin-top: 0.25rem;
    font-size: 1.35rem;
}

.donation-page .dl-hero-lead {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.donation-page .donate-hero-bogo {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    min-width: 9.5rem;
    max-width: 12.5rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.65);
    background:
        linear-gradient(145deg, rgba(var(--theme-gold-rgb), 0.22), rgba(var(--theme-gold-rgb), 0.1) 55%, rgba(var(--theme-ink-rgb), 0.55));
    color: var(--theme-text-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 0 0 1px rgba(var(--theme-gold-rgb), 0.08), 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

[dir="rtl"] .donation-page .donate-hero-bogo {
    align-items: flex-end;
    text-align: right;
}

.donation-page .donate-hero-bogo:hover {
    border-color: rgba(255, 214, 120, 0.9);
    transform: translateY(-1px);
    background:
        linear-gradient(145deg, rgba(var(--theme-gold-rgb), 0.3), rgba(var(--theme-gold-rgb), 0.14) 55%, rgba(var(--theme-ink-rgb), 0.6));
}

.donation-page .donate-hero-bogo.is-used,
.donation-page .donate-hero-bogo:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.donation-page .donate-hero-bogo__limit,
.donation-page .donate-hero-bogo__cd {
    display: block;
    margin-top: 0.15rem;
    color: #ffe2a0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.donation-page .donate-bogo-status {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.5);
}

.donation-page .donate-bogo-status.is-ready {
    border-color: rgba(120, 200, 140, 0.4);
    background:
        linear-gradient(120deg, rgba(80, 160, 110, 0.14), transparent 60%),
        rgba(var(--theme-ink-rgb), 0.5);
}

.donation-page .donate-bogo-status.is-cooldown {
    border-color: rgba(var(--theme-gold-rgb), 0.5);
    background:
        linear-gradient(120deg, rgba(var(--theme-gold-rgb), 0.14), transparent 60%),
        rgba(var(--theme-ink-rgb), 0.55);
}

.donation-page .donate-bogo-status__icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1.2;
}

.donation-page .donate-bogo-status__title {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--theme-gold-soft);
    font-size: 0.84rem;
    font-weight: 800;
}

.donation-page .donate-bogo-status.is-ready .donate-bogo-status__title {
    color: #b8efc4;
}

.donation-page .donate-bogo-status__text,
.donation-page .donate-bogo-status__timer {
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.donation-page .donate-bogo-status__timer {
    margin-top: 0.25rem;
    color: var(--theme-gold-bright);
    font-variant-numeric: tabular-nums;
}

.donation-page .donate-bogo-status__when {
    color: var(--theme-text-soft);
    font-weight: 700;
}

.donation-page .donate-bogo-board.is-locked .donate-bogo-row {
    pointer-events: none;
    opacity: 0.55;
}

.donation-page .donate-hero-bogo__badge {
    display: inline-flex;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.6);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: #ffe2a0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.donation-page .donate-hero-bogo__title {
    color: var(--theme-gold-bright);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.donation-page .donate-hero-bogo__hint {
    color: var(--theme-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .donation-page .dl-hero--with-bogo {
        flex-direction: column;
        align-items: stretch;
    }

    .donation-page .donate-hero-bogo {
        max-width: none;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .donation-page .donate-hero-bogo:hover {
        transform: none;
    }
}

.donation-page .downloads-page,
.donation-page .downloads-section {
    margin-bottom: 0.75rem !important;
    border-radius: 12px;
}

.donation-page .downloads-page-head,
.donation-page .downloads-section-head {
    padding: 0.65rem 0.85rem !important;
    gap: 0.45rem;
}

.donation-page .downloads-page-head p,
.donation-page .downloads-section-head p {
    font-size: 0.78rem;
}

.donation-page .downloads-page-body,
.donation-page .downloads-section-body {
    padding: 0.7rem 0.8rem 0.85rem !important;
}

.donation-page .donate-methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.donation-page .dl-driver-row {
    min-height: 96px;
    gap: 0.55rem;
    padding: 0.7rem 0.65rem;
    border-radius: 10px;
}

.donation-page .dl-driver-logo {
    min-height: 40px;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
}

.donation-page .dl-driver-row img {
    max-width: 96px;
}

.donation-page .dl-driver-btn {
    min-width: 0;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    font-size: 0.6rem;
}

.donation-page .dl-driver-row.is-active {
    border-color: var(--theme-gold);
    box-shadow: 0 0 0 1px rgba(var(--theme-gold-soft-rgb), 0.22);
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(var(--theme-gold-rgb), 0.18), transparent 60%),
        rgba(var(--theme-ink-rgb), 0.55);
}

.donation-page .dl-driver-row.is-active .dl-driver-btn {
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.22);
    color: var(--theme-gold-bright);
}

.donation-page #content-donate .downloads-page-head,
.donation-page .downloads-page .downloads-page-head {
    padding: 0.5rem 0.75rem !important;
}

.donation-page .downloads-page .downloads-page-body {
    padding: 0.55rem 0.65rem 0.7rem !important;
}

.donation-page .donate-sec-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.donation-page .donate-offer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

.donation-page .donate-offer-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 9px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.42);
    color: var(--theme-text-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.donation-page .donate-offer-tab:hover {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.5);
    color: var(--theme-text-soft);
}

.donation-page .donate-offer-tab.is-active {
    border-color: rgba(var(--theme-gold-rgb), 0.65);
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.16), rgba(var(--theme-gold-rgb), 0.08)),
        rgba(var(--theme-ink-rgb), 0.55);
    color: var(--theme-gold-bright);
}

.donation-page .donate-offer-tab__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.55);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: #ffe2a0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.donation-page .donate-offer-pane[hidden] {
    display: none !important;
}

.donation-page .donate-bogo-board {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.donation-page .donate-bogo-hero {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    background:
        linear-gradient(120deg, rgba(var(--theme-gold-rgb), 0.14), transparent 55%),
        rgba(var(--theme-ink-rgb), 0.55);
}

.donation-page .donate-bogo-hero__ribbon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.65);
    background: rgba(var(--theme-gold-rgb), 0.18);
    color: #ffe2a0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.donation-page .donate-bogo-hero__title {
    margin: 0 0 0.2rem;
    color: var(--theme-gold-soft);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.donation-page .donate-bogo-hero__text {
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.donation-page .donate-bogo-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1.1fr) auto;
    gap: 0.55rem;
    padding: 0 0.55rem;
    color: var(--theme-text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.donation-page .donate-bogo-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.donation-page .donate-bogo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1.1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.24);
    background:
        linear-gradient(135deg, rgba(var(--theme-gold-rgb), 0.08), transparent 55%),
        rgba(var(--theme-ink-rgb), 0.45);
    color: var(--theme-text-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

[dir="rtl"] .donation-page .donate-bogo-row {
    text-align: right;
}

.donation-page .donate-bogo-row:hover {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.5);
    background:
        linear-gradient(135deg, rgba(var(--theme-gold-rgb), 0.14), transparent 55%),
        rgba(var(--theme-ink-rgb), 0.58);
    transform: translateY(-1px);
}

.donation-page .donate-bogo-row.is-active,
.donation-page .donate-bogo-row.is-featured,
.donation-page .donate-bogo-row.border-primary {
    border-color: rgba(var(--theme-gold-rgb), 0.7) !important;
    background:
        linear-gradient(100deg, rgba(var(--theme-gold-rgb), 0.16), transparent 62%),
        rgba(var(--theme-ink-rgb), 0.55);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-gold-rgb), 0.08);
}

.donation-page .donate-bogo-row.is-unmatched {
    opacity: 0.72;
}

.donation-page .donate-bogo-row__buy strong,
.donation-page .donate-bogo-row__get strong {
    display: block;
    color: var(--theme-text);
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.donation-page .donate-bogo-row__get strong {
    color: var(--theme-gold-bright);
    font-size: 1.05rem;
}

.donation-page .donate-bogo-row__buy small,
.donation-page .donate-bogo-row__get small,
.donation-page .donate-bogo-row__free-col small {
    display: block;
    color: var(--theme-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.donation-page .donate-bogo-row__free-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
}

[dir="rtl"] .donation-page .donate-bogo-row__free-col {
    align-items: flex-end;
}

.donation-page .donate-bogo-row__free {
    display: inline-flex;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.65);
    background: rgba(var(--theme-gold-rgb), 0.18);
    color: #ffe2a0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.donation-page .donate-bogo-row__price {
    min-width: 4.2rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: var(--theme-gold-bright);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.donation-page .donate-bogo-row__price--tl {
    color: var(--theme-gold-pale);
    border-color: rgba(var(--theme-gold-rgb), 0.35);
}

.donation-page .donate-bogo-hint {
    margin-top: 0.15rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background: rgba(var(--theme-gold-rgb), 0.08);
    color: var(--theme-gold-soft);
    font-size: 0.78rem;
}

@media (max-width: 575.98px) {
    .donation-page .donate-offer-tabs {
        grid-template-columns: 1fr;
    }

    .donation-page .donate-bogo-head {
        display: none;
    }

    .donation-page .donate-bogo-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem 0.55rem;
    }

    .donation-page .donate-bogo-row__free-col,
    .donation-page .donate-bogo-row__get {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .donation-page .donate-bogo-row:hover {
        transform: none;
    }
}

.donation-page .donate-pkg-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.donation-page .donate-pkg-row,
.donation-page .donation-package-card.donate-pkg-row {
    display: grid;
    grid-template-columns: 14px 1.1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    border-radius: 6px;
    background: rgba(var(--theme-ink-rgb), 0.42);
    color: var(--theme-text-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}

[dir="rtl"] .donation-page .donate-pkg-row,
[dir="rtl"] .donation-page .donation-package-card.donate-pkg-row {
    text-align: right;
}

.donation-page .donate-pkg-row:hover {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.45);
    background: rgba(var(--theme-panel-rgb), 0.5);
}

.donation-page .donate-pkg-row.is-active,
.donation-page .donation-package-card.donate-pkg-row.is-active,
.donation-page .donation-package-card.donate-pkg-row.border-primary {
    border-color: var(--theme-gold) !important;
    background: rgba(var(--theme-gold-rgb), 0.14);
}

.donation-page .donate-pkg-row__radio {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--theme-gold-soft-rgb), 0.45);
    background: transparent;
    box-shadow: none;
}

.donation-page .donate-pkg-row.is-active .donate-pkg-row__radio {
    border-color: var(--theme-gold);
    background: var(--theme-gold);
    box-shadow: inset 0 0 0 2px rgba(var(--theme-ink-rgb), 0.85);
}

.donation-page .donate-pkg-row__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}

.donation-page .donate-pkg-row__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.4rem;
    min-width: 0;
}

.donation-page .donate-pkg-row__qty {
    color: var(--theme-text);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.donation-page .donate-pkg-row__unit {
    color: var(--theme-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.donation-page .donate-pkg-row.has-bonus {
    border-color: rgba(var(--theme-gold-rgb), 0.42);
    background:
        linear-gradient(90deg, rgba(var(--theme-gold-rgb), 0.1), transparent 55%),
        rgba(var(--theme-ink-rgb), 0.42);
    animation: donate-bonus-row-glow 3.4s ease-in-out infinite;
}

.donation-page .donate-pkg-row__bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.55);
    background: rgba(var(--theme-gold-rgb), 0.14);
    color: #ffe2a0;
    font-size: 0.65rem;
    font-weight: 800;
}

.donation-page .donate-pkg-row__bonus i {
    font-size: 0.55rem;
    animation: rank-guild-sparkle 1.8s ease-in-out infinite;
}

@keyframes donate-bonus-row-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(var(--theme-gold-rgb), 0); }
    50% { box-shadow: 0 0 14px rgba(var(--theme-gold-rgb), 0.18); }
}

.donation-page .donate-pkg-row__price {
    color: var(--theme-gold-bright);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.donation-page .donate-order-box {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.42);
}

.donation-page .donate-order-box__label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--theme-text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.donation-page .donate-order-box__pkg,
.donation-page #content-donate-details .package-name {
    margin: 0;
    color: var(--theme-text-soft) !important;
    font-size: 0.88rem;
    font-weight: 700;
}

.donation-page .donate-order-box__right {
    text-align: right;
}

[dir="rtl"] .donation-page .donate-order-box__right {
    text-align: left;
}

.donation-page .donate-order-box__total,
.donation-page #content-donate-details .package-price {
    margin: 0;
    color: var(--theme-gold-bright);
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.donation-page .donate-checkout-btn {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: 38px;
    justify-content: stretch;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.donation-page .donate-checkout-btn.disabled,
.donation-page .donate-checkout-btn[aria-disabled="true"],
.donation-page #donation-paypal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

.donation-page .form-control {
    color: var(--theme-text-soft);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-ink-rgb), 0.75);
    border-radius: 10px;
}

.donation-page .form-control:focus {
    color: var(--theme-text);
    border-color: var(--theme-gold-soft);
    background: rgba(var(--theme-ink-rgb), 0.9);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-gold-rgb), 0.2);
}

.donation-page label {
    color: var(--theme-text-soft);
}

.donation-page .donate-epin__lead {
    margin: 0 0 0.75rem;
    color: var(--theme-text-muted);
    text-align: center;
}

.donation-page .donate-submit {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.65);
    color: var(--theme-ink) !important;
    font-weight: 800;
    background: var(--theme-btn-gradient);
}

.donation-page .donation-paypal-rules__scroll {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(var(--theme-ink-rgb), 0.55);
    border-color: rgba(var(--theme-gold-rgb), 0.35) !important;
    color: var(--theme-text-soft);
}

.donation-page .donation-paypal-rules .custom-control-label {
    color: var(--theme-text-soft);
    line-height: 1.45;
}

.donation-page .donate-empty {
    grid-column: 1 / -1;
    color: var(--theme-text-muted);
    text-align: center;
    padding: 0.75rem;
}

.main-content.donation-rules-page .donation-rules-page__section h6 {
    color: var(--theme-gold-soft);
}

.main-content.donation-rules-page .donation-rules-page__section li {
    color: var(--theme-text-soft);
    line-height: 1.5;
}

@media screen and (max-width: 575.98px) {
    .donation-page .donate-order-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .donation-page .donate-order-box__right {
        text-align: left;
    }
}

/* Account sidebar — Currency + References */
.sidebar.account-sidebar .acc-side-card,
.sidebar.account-sidebar .card.acc-side-card {
    overflow: hidden;
    border: 1px solid var(--theme-border-strong) !important;
    background: var(--theme-panel-gradient) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.sidebar.account-sidebar .acc-side-head {
    padding: 0.7rem 0.85rem !important;
}

.sidebar.account-sidebar .acc-side-head p {
    color: var(--theme-text-soft);
    font-size: 0.78rem;
}

.sidebar.account-sidebar .acc-side-head .donate-sec-emoji,
.sidebar.account-sidebar .acc-side-head .theme-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit;
}

.sidebar.account-sidebar .acc-side-body {
    padding: 0.55rem 0.6rem 0.65rem !important;
    color: var(--theme-text-soft);
}

.sidebar.account-sidebar .acc-side-body--nav {
    padding: 0.4rem 0.45rem 0.5rem !important;
}

.sidebar.account-sidebar .acc-currency-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar.account-sidebar .acc-currency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    background: rgba(var(--theme-ink-rgb), 0.42);
}

.sidebar.account-sidebar .acc-currency-row__name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: var(--theme-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.sidebar.account-sidebar .acc-currency-row__emoji {
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 1;
}

.sidebar.account-sidebar .acc-currency-row__val {
    color: var(--theme-gold-bright);
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sidebar.account-sidebar .acc-ref-nav {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.sidebar.account-sidebar .acc-ref-link {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    background: rgba(var(--theme-ink-rgb), 0.42);
    color: var(--theme-text-soft);
    text-decoration: none;
    transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.sidebar.account-sidebar .acc-ref-link:hover,
.sidebar.account-sidebar .acc-ref-link:focus {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.45);
    background: rgba(var(--theme-panel-rgb), 0.55);
    color: var(--theme-text);
    text-decoration: none;
}

.sidebar.account-sidebar .acc-ref-link.is-active {
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: var(--theme-text);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-gold-soft-rgb), 0.15);
}

.sidebar.account-sidebar .acc-ref-link__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}

.sidebar.account-sidebar .acc-ref-link__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Referral page */
.referral-page .ref-signature-box {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.referral-page .ref-signature-code {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.55);
    color: var(--theme-gold-soft);
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
}

.referral-page .ref-copy-btn {
    align-self: flex-start;
    min-width: 120px;
    height: 34px;
    border-radius: 6px;
    font-size: 0.65rem;
}

.referral-page .ref-empty {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.referral-page .ref-table-wrap {
    overflow-x: auto;
}

.referral-page .ref-datatable,
.referral-page .ref-table-wrap .table {
    color: var(--theme-text-soft);
    background: transparent;
}

.referral-page .ref-table-wrap .table thead th {
    border-color: rgba(var(--theme-gold-rgb), 0.35);
    color: var(--theme-gold-soft);
    background: rgba(var(--theme-panel-rgb), 0.55);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.referral-page .ref-table-wrap .table td,
.referral-page .ref-table-wrap .table th {
    border-color: rgba(var(--theme-gold-rgb), 0.22);
    vertical-align: middle;
}

.referral-page .ref-table-wrap .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(var(--theme-ink-rgb), 0.35);
}

.referral-page .ref-table-wrap .table-hover tbody tr:hover {
    background: rgba(var(--theme-gold-rgb), 0.12);
    color: var(--theme-text);
}

.referral-page .dataTables_wrapper .dataTables_info,
.referral-page .dataTables_wrapper .dataTables_length label,
.referral-page .dataTables_wrapper .dataTables_filter label {
    color: var(--theme-text-muted);
}

.main-content .card.hsss {
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: var(--theme-panel-gradient);
}

.main-content .card.hsss > .card-header h5,
.main-content .card.hsss > .card-header p,
.main-content .card.hsss .font-weight-bold,
.main-content .card.hsss h2,
.main-content .card.hsss h3,
.main-content .card.hsss h4 {
    color: var(--theme-text-soft);
}

.main-content .card.hsss > .card-body {
    color: var(--theme-text-soft);
}

.main-content .card.hsss .text-muted,
.main-content .card.hsss .form-text.text-muted,
.main-content .card.hsss .package-name.text-muted {
    color: var(--theme-gold-soft) !important;
}

.main-content .card.hsss .row-bordered {
    border-bottom-color: rgba(var(--theme-gold-rgb), 0.2) !important;
}

.main-content .card.hsss .form-control,
.main-content .card.hsss select.form-control,
.main-content .card.hsss textarea.form-control {
    color: var(--theme-text-soft);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(8, 10, 2, 0.78);
}

.main-content .card.hsss .form-control:focus,
.main-content .card.hsss select.form-control:focus,
.main-content .card.hsss textarea.form-control:focus {
    border-color: var(--theme-gold-soft);
    background: rgba(8, 10, 2, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-gold-rgb), 0.18);
}

.main-content .card.hsss .form-control-plaintext {
    color: var(--theme-text-soft);
}

.main-content .card.hsss a.text-primary {
    color: var(--theme-gold-soft) !important;
}

.main-content .card.hsss a.text-primary:hover {
    color: var(--theme-text) !important;
}

.main-content .card.hsss hr {
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

/* Account dashboard harmony */
.account-dashboard-page h1 {
    color: var(--theme-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.account-dashboard-page > .card {
    border: 1px solid rgba(var(--theme-gold-rgb), 0.38);
    background: var(--theme-panel-gradient);
}

.account-dashboard-page > .card > .card-header {
    background: transparent;
    border: none;
}

.account-dashboard-page > .card > .card-header h5 {
    color: var(--theme-gold-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.account-dashboard-page > .card > .card-body {
    color: var(--theme-text-soft);
}

.account-dashboard-page .box.box-small-icon-alt,
.account-dashboard-page .account-dash-card {
    position: relative;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.36);
    border-radius: 12px;
    padding: 0.95rem 1rem !important;
    margin-bottom: 0.85rem;
    min-height: 0;
    height: auto;
    background: linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.92) 0%, rgba(var(--theme-ink-rgb), 0.96) 100%);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-gold-rgb), 0.08), 0 8px 18px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.85rem;
    overflow: visible;
    text-decoration: none;
    color: inherit;
}

.account-dashboard-page .account-dash-card:hover {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.75);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.account-dashboard-page .account-dash-card__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.72);
    background: radial-gradient(circle at 30% 25%, rgba(var(--theme-gold-pale-rgb), 0.22), transparent 55%),
        linear-gradient(165deg, rgba(var(--theme-burgundy-rgb), 0.45), rgba(var(--theme-mid-rgb), 0.92));
    color: var(--theme-text);
    font-size: 1.05rem;
}

.account-dashboard-page .account-dash-card:hover .account-dash-card__icon {
    border-color: var(--theme-gold-soft);
    background: radial-gradient(circle at 30% 25%, rgba(var(--theme-gold-pale-rgb), 0.3), transparent 55%),
        linear-gradient(165deg, rgba(var(--theme-gold-rgb), 0.55), rgba(var(--theme-mid-rgb), 0.95));
}

.account-dashboard-page .account-dash-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.account-dashboard-page .account-dash-card .box-title {
    display: block;
    margin: 0;
    color: var(--theme-text);
    font-size: 1rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.25;
}

.account-dashboard-page .account-dash-card .box-description {
    display: block;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    text-align: left;
}

/* Login page harmony */
.main-content.login-page .auth-login-card .card-header {
    text-align: center;
}

.main-content.login-page .auth-login-card .card-header,
.main-content.login-page .auth-login-card .card-header h5,
.main-content.login-page .auth-login-card .card-body,
.main-content.login-page .auth-login-card label,
.main-content.login-page .auth-login-card .form-check-label {
    color: var(--theme-text-soft);
}

.main-content.login-page .auth-login-card .form-control {
    color: var(--theme-text-soft);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    background: rgba(8, 10, 2, 0.78);
}

.main-content.login-page .auth-login-card .form-control:focus {
    color: var(--theme-text);
    border-color: var(--theme-gold-soft);
    background: rgba(8, 10, 2, 0.92);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-gold-rgb), 0.2);
}

.main-content.login-page .auth-login-card .btn-link {
    color: var(--theme-gold-soft);
}

.main-content.login-page .auth-login-card .btn-link:hover {
    color: var(--theme-text);
}

.main-content.login-page .auth-login-card .btn-primary {
    min-width: 140px;
}

.main-content.login-page .auth-login-card .invalid-feedback {
    color: #ffb2a2;
}

/* Register page — same burgundy and gold theme as login */
.main-content.register-page .auth-register-card .card-header {
    text-align: center;
}

.main-content.register-page .auth-register-card .form-text.text-muted {
    color: var(--theme-text-muted) !important;
}

.main-content.register-page .auth-register-card .custom-control-label,
.main-content.register-page .auth-register-card .custom-control-label a {
    color: var(--theme-text-soft);
}

.main-content.register-page .auth-register-card .custom-control-label a:hover {
    color: var(--theme-gold);
}

.main-content.register-page .auth-register-card .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--theme-gold);
    background-color: var(--theme-gold);
}

.main-content.register-page .auth-register-card .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-gold-rgb), 0.25);
}

.main-content.register-page .auth-register-card .alert-danger {
    color: #ffc9c0;
    background: rgba(80, 16, 12, 0.55);
    border-color: rgba(220, 80, 60, 0.45);
}

.main-content.register-page .auth-register-card .btn-primary {
    min-width: 140px;
}

.main-content.register-page > .card.hsss.auth-register-card {
    background: linear-gradient(180deg, var(--theme-dark-elevated) 0%, var(--theme-dark-mid) 48%, var(--theme-ink) 100%) !important;
    border: 1px solid var(--theme-border-strong) !important;
}

/* —— Downloads hall (Old Road layout, burgundy and gold) —— */
.dl-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.15rem;
    padding: 1.45rem 1.4rem 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--theme-border-strong);
    background:
        radial-gradient(80% 140% at 12% -20%, var(--theme-glow), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%),
        var(--theme-panel-gradient);
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.08),
        0 16px 34px rgba(0, 0, 0, 0.4);
}

.dl-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-gold), transparent);
    opacity: 0.75;
}

.dl-hero-kicker {
    margin: 0;
    color: var(--theme-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.dl-hero-title {
    margin: 0.45rem 0 0;
    color: var(--theme-gold-bright);
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 18px var(--theme-glow);
}

.dl-hero-lead {
    max-width: 34rem;
    margin: 0.65rem 0 0;
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.downloads-page.card,
.downloads-section.card {
    overflow: hidden;
    border: 1px solid var(--theme-border-strong) !important;
    background: var(--theme-panel-gradient) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.downloads-page-head,
.downloads-section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 !important;
    min-height: 0;
    padding: 0.95rem 1.05rem 0.8rem !important;
    border-bottom: 1px solid var(--theme-border);
    background: linear-gradient(180deg, var(--theme-surface) 0%, var(--theme-dark-elevated) 100%) !important;
}

.downloads-page-head p,
.downloads-section-head p {
    margin: 0;
    color: var(--theme-text-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.downloads-page-head .theme-ico,
.downloads-section-head .theme-ico {
    color: var(--theme-gold-soft);
}

.downloads-page-body,
.downloads-section-body {
    padding: 1rem 1.05rem 1.2rem !important;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dl-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 46%),
        rgba(var(--theme-ink-rgb), 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-row.is-featured {
    border-color: var(--theme-border-strong);
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(var(--theme-gold-rgb), 0.22), transparent 56%),
        rgba(var(--theme-ink-rgb), 0.62);
}

.dl-row:hover {
    border-color: var(--theme-gold);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.dl-row-media {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    background: var(--theme-text);
    border: 1px solid var(--theme-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dl-row-fallback {
    color: var(--theme-gold-dark);
    font-size: 1.5rem;
}

.dl-row-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dl-row-info {
    min-width: 0;
}

.dl-row-name {
    margin: 0 0 0.4rem;
    color: var(--theme-gold-bright);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-row-size {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
}

.dl-row-size i {
    color: var(--theme-gold);
    font-size: 0.75rem;
}

.dl-row-size strong {
    color: var(--theme-text-soft);
    font-weight: 700;
}

.dl-row-btn {
    display: inline-flex;
    align-items: stretch;
    min-width: 168px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border-strong);
    border-radius: 8px;
    background: rgba(var(--theme-ink-rgb), 0.55);
    color: var(--theme-gold-bright) !important;
    text-decoration: none !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dl-row-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    background: rgba(var(--theme-gold-rgb), 0.2);
    border-right: 1px solid var(--theme-border);
    color: var(--theme-gold);
    font-size: 0.78rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dl-row-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 1rem;
}

.dl-row-btn:hover {
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.18);
    color: var(--theme-gold-bright) !important;
    transform: translateY(-1px);
}

.dl-row-btn:hover i {
    background: var(--theme-gold);
    color: var(--theme-ink);
    border-right-color: var(--theme-gold);
}

[dir="rtl"] .dl-row-btn i {
    border-right: 0;
    border-left: 1px solid var(--theme-border);
}

[dir="rtl"] .dl-row-btn:hover i {
    border-left-color: var(--theme-gold);
}

.downloads-drivers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.dl-driver-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 148px;
    padding: 1.15rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--theme-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 50%),
        rgba(var(--theme-ink-rgb), 0.5);
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dl-driver-row:hover {
    border-color: var(--theme-gold);
    transform: translateY(-2px);
}

.dl-driver-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: var(--theme-text);
}

.dl-driver-row img {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.dl-driver-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 36px;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: rgba(var(--theme-ink-rgb), 0.55);
    color: var(--theme-gold-bright);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dl-driver-row:hover .dl-driver-btn {
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.18);
    color: var(--theme-gold-bright);
}

.dl-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.dl-specs-col {
    padding: 1rem 1rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.45);
}

.dl-specs-col.is-rec {
    border-color: var(--theme-border-strong);
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(var(--theme-gold-rgb), 0.16), transparent 60%),
        rgba(var(--theme-ink-rgb), 0.55);
}

.dl-specs-col h3 {
    margin: 0 0 0.85rem;
    color: var(--theme-gold-bright);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dl-specs-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dl-specs-col li {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.2);
}

.dl-specs-col li span {
    color: var(--theme-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dl-specs-col li b {
    color: var(--theme-text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.downloads-empty {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px dashed var(--theme-border);
    background: rgba(var(--theme-ink-rgb), 0.4);
}

.downloads-empty__text {
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.95rem;
}

@media screen and (max-width: 767px) {
    .dl-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .dl-row-media {
        width: 72px;
        height: 72px;
    }

    .dl-row-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .downloads-drivers,
    .dl-specs {
        grid-template-columns: 1fr;
    }
}

/* —— Site header + navbar —— */
.site-header-region {
    position: relative;
}

.site-navbar.navbar {
    --nav-text: var(--theme-text-soft);
    --nav-text-hover: var(--theme-text);
    --nav-pill-bg: linear-gradient(180deg, rgba(41, 9, 11, 0.94) 0%, rgba(12, 7, 8, 0.96) 100%);
    --nav-pill-border: rgba(var(--theme-gold-rgb), 0.5);
    --nav-panel: rgba(var(--theme-mid-rgb), 0.88);
    --nav-panel-solid: rgba(12, 7, 8, 0.97);
    --nav-line: rgba(var(--theme-gold-rgb), 0.42);
    --nav-accent-wash: rgba(var(--theme-gold-rgb), 0.22);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    font-family: "Oxanium", "Source Sans 3", "Tajawal", sans-serif;
}

.site-navbar-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 56px;
    padding: 0;
}

.site-navbar-brand img {
    max-height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.site-navbar-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 0.75rem;
    padding-right: 0.85rem;
    border-right: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

.site-navbar-logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

[dir="rtl"] .site-navbar-logo {
    margin-right: 0;
    margin-left: 0.75rem;
    padding-right: 0;
    padding-left: 0.85rem;
    border-right: 0;
    border-left: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

.site-navbar-toggler {
    border: 1px solid var(--nav-line);
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
    background: var(--nav-panel);
    margin-left: auto;
    box-shadow: 0 0 14px rgba(var(--theme-gold-rgb), 0.12);
}

.site-navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(var(--theme-gold-rgb), 0.35);
}

.site-navbar-collapse {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.45rem 1.4rem;
    border-radius: 0;
    background: var(--nav-pill-bg);
    border: 0;
    border-bottom: 1px solid var(--nav-pill-border);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-navbar-collapse::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-gold-rgb), 0.55), rgba(var(--theme-gold-soft-rgb), 0.95), rgba(var(--theme-gold-rgb), 0.55), transparent);
    pointer-events: none;
}

.site-navbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-navbar-aside {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 2;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

[dir="rtl"] .site-navbar-aside {
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0.35rem;
    border-left: 0;
    border-right: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

.site-navbar-user {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0 !important;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-navbar .navbar-nav {
    gap: 0.15rem;
    align-items: center;
}

.site-navbar-links {
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 !important;
    padding: 0;
    gap: 0.2rem;
}

.site-navbar.navbar-dark .navbar-nav .nav-link,
.site-navbar .navbar-nav .nav-link {
    color: var(--nav-text) !important;
    font-family: "Oxanium", "Source Sans 3", "Tajawal", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    height: auto;
    min-height: 0;
    line-height: 1.15;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.site-navbar-links .nav-ico {
    font-size: 0.78rem;
    color: var(--theme-gold-soft);
    opacity: 0.95;
    width: 1em;
    text-align: center;
    transition: color 0.18s ease;
}

.site-navbar-links .nav-link:hover .nav-ico,
.site-navbar-links .nav-link.active .nav-ico,
.site-navbar-links .nav-link.show .nav-ico,
.site-navbar-links .active > .nav-link .nav-ico {
    color: var(--theme-text);
    opacity: 1;
}

.site-navbar .nav-item .nav-link:after,
.site-navbar.navbar-dark .navbar-nav .nav-link::after {
    content: none !important;
    display: none !important;
}

.site-navbar-links .dropdown-toggle:after,
.site-navbar-links .nav-link.dropdown-toggle:after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}

.site-navbar .navbar-nav .nav-link:focus,
.site-navbar .navbar-nav .nav-link:hover {
    color: var(--nav-text-hover) !important;
    background: var(--nav-accent-wash) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.38);
    box-shadow: none !important;
    filter: none;
    outline: none !important;
}

.site-navbar .navbar-nav .active > .nav-link,
.site-navbar .navbar-nav .nav-link.active,
.site-navbar .navbar-nav .nav-link.show,
.site-navbar .navbar-nav .show > .nav-link {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.34) 0%, rgba(var(--theme-burgundy-rgb), 0.28) 100%) !important;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.55);
    box-shadow:
        0 0 0 1px rgba(var(--theme-gold-rgb), 0.12) inset,
        0 0 16px rgba(var(--theme-gold-rgb), 0.18) !important;
    filter: none;
    outline: none !important;
}

.site-navbar-lang {
    position: static;
    transform: none;
    margin: 0 !important;
}

.site-navbar .site-navbar-lang .nav-lang-btn,
.site-navbar .site-navbar-lang .nav-link.nav-lang-btn {
    color: var(--theme-gold-pale) !important;
    background: rgba(var(--theme-ink-rgb), 0.35) !important;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28) !important;
    border-radius: 999px !important;
    padding: 0.38rem 0.7rem !important;
    font-family: "Oxanium", "Tajawal", sans-serif !important;
    font-weight: 700 !important;
    gap: 0.4rem;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
    backdrop-filter: none;
}

.site-navbar .site-navbar-lang .nav-lang-btn:hover,
.site-navbar .site-navbar-lang .nav-lang-btn:focus,
.site-navbar .site-navbar-lang .nav-lang-btn.show {
    color: var(--theme-text) !important;
    background: var(--nav-accent-wash) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.5) !important;
    box-shadow: none;
}

.site-navbar .site-navbar-lang .nav-lang-btn.dropdown-toggle:after {
    display: none !important;
}

.site-navbar .site-navbar-user .nav-link {
    color: var(--theme-text-soft) !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.38rem 0.7rem !important;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: "Oxanium", "Tajawal", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.site-navbar .site-navbar-user .nav-link:hover,
.site-navbar .site-navbar-user .nav-link:focus,
.site-navbar .site-navbar-user .nav-link.active,
.site-navbar .site-navbar-user .nav-link.show {
    color: var(--theme-text) !important;
    background: var(--nav-accent-wash) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.35) !important;
}

.site-navbar .site-navbar-user .nav-auth-login {
    border-color: rgba(var(--theme-gold-rgb), 0.32) !important;
    background: rgba(var(--theme-gold-rgb), 0.08) !important;
}

.site-navbar .site-navbar-user .nav-auth-register {
    color: var(--theme-ink) !important;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.75) !important;
    background: linear-gradient(180deg, var(--theme-gold-pale) 0%, var(--theme-gold) 100%) !important;
    box-shadow: 0 0 16px rgba(var(--theme-gold-rgb), 0.28) !important;
}

.site-navbar .site-navbar-user .nav-auth-register:hover,
.site-navbar .site-navbar-user .nav-auth-register:focus,
.site-navbar .site-navbar-user .nav-auth-register.active {
    color: var(--theme-ink) !important;
    border-color: var(--theme-text) !important;
    background: linear-gradient(180deg, var(--theme-text) 0%, var(--theme-gold-soft) 100%) !important;
    box-shadow: 0 0 20px rgba(var(--theme-gold-rgb), 0.4) !important;
}

.site-navbar .site-navbar-user .nav-auth-register .nav-ico {
    color: var(--theme-ink);
}

.site-navbar .site-navbar-user .nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.45rem !important;
    text-transform: none;
}

.site-navbar .site-navbar-user .nav-user-btn.dropdown-toggle:after {
    border-top-color: var(--theme-gold);
    margin-left: 0.15rem;
    opacity: 0.85;
}

.site-navbar .site-navbar-user .nav-user-avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.site-navbar .site-navbar-user .nav-user-avatar > .fa-user {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--theme-gold-soft), var(--theme-gold));
    color: var(--theme-ink);
    font-size: 0.72rem;
}

.site-navbar .site-navbar-user .nav-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35) !important;
    color: var(--theme-gold-soft) !important;
    background: rgba(var(--theme-gold-rgb), 0.1) !important;
    position: relative;
    text-transform: none;
    box-shadow: 0 0 14px rgba(var(--theme-gold-rgb), 0.12);
}

.site-navbar .site-navbar-user .nav-icon-btn:hover,
.site-navbar .site-navbar-user .nav-icon-btn.active {
    color: var(--theme-text) !important;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.65) !important;
    background: rgba(var(--theme-gold-rgb), 0.22) !important;
}

.site-navbar .site-navbar-user .nav-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-family: "Orbitron", "Oxanium", monospace;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, #ff6b8a 0%, #d62850 100%) !important;
    box-shadow: 0 0 10px rgba(214, 40, 80, 0.45);
}

.site-navbar .dropdown-menu {
    margin-top: 0.55rem;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid var(--nav-line);
    background: var(--nav-panel-solid);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.06);
    overflow: hidden;
}

.site-navbar .dropdown-item {
    color: var(--theme-gold-soft);
    font-weight: 600;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    border-radius: 8px;
}

.site-navbar .nav-user-menu {
    min-width: 240px;
    padding: 0.6rem;
}

.site-navbar .nav-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    flex: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1;
    filter: saturate(1.05);
}

.site-navbar .nav-user-balance {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background:
        linear-gradient(165deg, rgba(var(--theme-gold-rgb), 0.14), rgba(var(--theme-ink-rgb), 0.72));
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-navbar .nav-user-balance__label {
    margin-bottom: 0.45rem;
    color: rgba(var(--theme-gold-soft-rgb), 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-navbar .nav-user-balance__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    color: var(--theme-text-soft);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}

.site-navbar .nav-user-balance__row + .nav-user-balance__row {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.18);
}

.site-navbar .nav-user-balance__name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.site-navbar .nav-user-balance__row strong {
    color: #f6e27a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.site-navbar .nav-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.15rem;
    padding: 0.55rem 0.75rem;
    color: var(--theme-text-soft);
    background: transparent;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.site-navbar .nav-user-menu .dropdown-item:hover,
.site-navbar .nav-user-menu .dropdown-item:focus {
    color: var(--theme-ink);
    background: var(--theme-gold-highlight);
    transform: translateX(2px);
}

.site-navbar .nav-user-menu .dropdown-item.active,
.site-navbar .nav-user-menu .dropdown-item:active {
    color: var(--theme-gold-highlight);
    background: rgba(var(--theme-gold-rgb), 0.16);
    box-shadow: inset 2px 0 0 var(--theme-gold-highlight);
    transform: none;
}

.site-navbar .nav-user-menu .nav-user-logout {
    color: rgba(255, 170, 170, 0.95);
}

.site-navbar .nav-user-menu .nav-user-logout:hover,
.site-navbar .nav-user-menu .nav-user-logout:focus {
    color: #2a0c0c;
    background: #f3a4a4;
}

[dir="rtl"] .site-navbar .nav-user-menu .dropdown-item:hover,
[dir="rtl"] .site-navbar .nav-user-menu .dropdown-item:focus {
    transform: translateX(-2px);
}

[dir="rtl"] .site-navbar .nav-user-menu .dropdown-item.active,
[dir="rtl"] .site-navbar .nav-user-menu .dropdown-item:active {
    box-shadow: inset -2px 0 0 var(--theme-gold-highlight);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus,
.site-navbar .dropdown-item.active,
.site-navbar .dropdown-item:active {
    color: var(--theme-ink);
    background: var(--theme-gold-highlight);
}

.site-navbar .dropdown-divider {
    border-top-color: rgba(var(--theme-gold-rgb), 0.25);
}

.site-navbar .nav-lang-flag {
    border-radius: 50%;
    object-fit: cover;
}

.site-navbar .nav-lang-code {
    font-family: "Orbitron", "Oxanium", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

[dir="rtl"] .site-navbar-toggler {
    margin-left: 0;
    margin-right: auto;
}

.site-header {
    position: relative;
}

.site-header .site-header__hero {
    gap: 1.5rem;
    min-height: 360px;
    padding: 2.25rem 0 3.25rem;
}

/* —— HUD strip sits just above main —— */
.site-hud-wrap.container {
    margin-top: 17rem;
    margin-bottom: 0;
    position: relative;
    z-index: 8;
    /* slight inset; almost full main width */
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 1200px) {
    .site-app .site-hud-wrap.container {
        max-width: 1604px;
    }
}

@media (min-width: 1400px) {
    .site-app .site-hud-wrap.container {
        max-width: 1764px;
    }
}

@media (min-width: 1600px) {
    .site-app .site-hud-wrap.container {
        max-width: 1884px;
    }
}

.site-header-status.header-status {
    position: static;
    width: 100%;
    padding: 0;
}

.site-header-status .hud-dock {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr 1.35fr 0.9fr;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(var(--theme-mid-rgb), 0.94);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.08);
    overflow: hidden;
}

.site-header-status .hud-cell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(var(--theme-panel-rgb), 0.95) 0%, rgba(var(--theme-ink-rgb), 0.98) 100%);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
}

.site-header-status .hud-cell-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.2);
    color: var(--theme-text-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-header-status .hud-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-gold);
    font-size: 0.78rem;
}

.site-header-status .hud-cell-value {
    color: var(--theme-gold-bright);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    padding: 0.55rem 0.55rem 0.1rem;
}

.site-header-status .hud-cell-online {
    text-align: center;
}

.site-header-status .hud-cell-online .hud-cell-label {
    justify-content: center;
}

.site-header-status .hud-cell-online-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.65rem 0.65rem;
}

.site-header-status .hud-cell-online .hud-cell-value.players-online-count {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.12) 0%, rgba(var(--theme-ink-rgb), 0.55) 100%);
    box-shadow: inset 0 0 18px rgba(var(--theme-gold-rgb), 0.08);
    font-family: "Orbitron", "Oxanium", "Tajawal", monospace;
    font-size: clamp(1.05rem, 1.45vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
    color: var(--theme-text);
    text-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.45);
}

.site-header-status .hud-cell-online .hud-cell-meta {
    padding: 0.15rem 0.35rem 0;
    font-family: "Oxanium", "Source Sans 3", "Tajawal", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.site-header-status .hud-cell-online .hud-meter {
    width: 100%;
    margin: 0.25rem 0 0;
}

.site-header-status .hud-cell-time {
    text-align: center;
}

.site-header-status .hud-cell-time .hud-cell-label {
    justify-content: center;
}

.site-header-status .hud-cell-time-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.65rem 0.7rem;
}

.site-header-status .hud-cell-time .hud-cell-value,
.site-header-status .hud-cell-time .hud-cell-value.header-timer {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.12) 0%, rgba(var(--theme-ink-rgb), 0.55) 100%);
    box-shadow: inset 0 0 18px rgba(var(--theme-gold-rgb), 0.08);
    font-family: "Orbitron", "Oxanium", "Tajawal", monospace;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
    color: var(--theme-text);
    text-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.45);
}

.site-header-status .hud-cell-meta {
    color: var(--theme-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 0.55rem 0.35rem;
}

.site-header-status .hud-meter {
    width: calc(100% - 1.2rem);
    height: 6px;
    margin: 0.35rem auto 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.25);
}

.site-header-status .hud-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--theme-burgundy), var(--theme-gold) 55%, var(--theme-gold-pale));
}

.site-header-status .hud-fortress {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0.7rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 100%;
    flex: 1;
    justify-content: center;
}

.site-header-status .hud-fortress li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.site-header-status .hud-fortress-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--theme-text);
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 0;
}

.site-header-status .hud-fortress-name img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.site-header-status .hud-fortress-owner {
    color: var(--theme-gold);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: end;
}

.site-header-status .hud-fortress-owner.is-unknown {
    color: var(--theme-text-muted);
    white-space: normal;
    line-height: 1.25;
    max-width: 9.5rem;
}

.site-header-status .hud-fortress-empty {
    color: var(--theme-text-muted);
    font-size: 0.8rem;
    justify-content: center !important;
}

.site-header-status .hud-cell-bonus {
    text-align: center;
}

.site-header-status .hud-cell-bonus .hud-cell-label {
    justify-content: center;
}

.site-header-status .hud-cell-bonus-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem 0.4rem;
}

.site-header-status .hud-cell-bonus .hud-cell-value,
.site-header-status .hud-cell-bonus .hud-cell-value.header-donation {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.12) 0%, rgba(var(--theme-ink-rgb), 0.55) 100%);
    box-shadow: inset 0 0 18px rgba(var(--theme-gold-rgb), 0.08);
    font-family: "Orbitron", "Oxanium", "Tajawal", monospace;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-align: center;
    color: var(--theme-text-muted);
    text-shadow: none;
}

.site-header-status .hud-cell-bonus .hud-cell-value.is-on,
.site-header-status .hud-cell-bonus.is-on .hud-cell-value {
    color: var(--theme-text);
    border-color: rgba(var(--theme-gold-soft-rgb), 0.55);
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.22) 0%, rgba(var(--theme-ink-rgb), 0.55) 100%);
    text-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.45);
}

.site-header-status .hud-cell-bonus.has-bogo {
    position: relative;
}

.site-header-status .hud-bogo-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.28rem 0.45rem 0.32rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 196, 92, 0.55);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 196, 92, 0.28) 0%, transparent 55%),
        linear-gradient(180deg, rgba(134, 94, 43, 0.55) 0%, rgba(12, 7, 8, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 196, 92, 0.12),
        0 8px 22px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 230, 170, 0.18);
    color: #ffe7b0;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-header-status .hud-bogo-panel.is-live {
    animation: hud-bogo-pulse 2.2s ease-in-out infinite;
}

.site-header-status .hud-bogo-panel__orbit {
    pointer-events: none;
    position: absolute;
    inset: -40%;
    z-index: 0;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 210, 110, 0.0) 40deg,
        rgba(255, 210, 110, 0.55) 90deg,
        rgba(255, 240, 190, 0.85) 110deg,
        rgba(255, 210, 110, 0.35) 140deg,
        transparent 190deg,
        transparent 360deg
    );
    opacity: 0.55;
    animation: hud-bogo-orbit 4.5s linear infinite;
    mask-image: radial-gradient(circle at center, transparent 54%, #000 58%, #000 68%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 54%, #000 58%, #000 68%, transparent 72%);
}

.site-header-status .hud-bogo-panel__shine {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 240, 190, 0.28) 50%,
        transparent 62%,
        transparent 100%
    );
    transform: translateX(-120%);
    animation: hud-bogo-shine 2.8s ease-in-out infinite;
}

.site-header-status .hud-bogo-panel__spark {
    pointer-events: none;
    position: absolute;
    z-index: 2;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #fff6d4;
    box-shadow: 0 0 8px 2px rgba(255, 200, 90, 0.75);
    opacity: 0;
}

.site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__spark--a {
    top: 18%;
    left: 16%;
    animation: hud-bogo-spark 2.4s ease-in-out infinite;
}

.site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__spark--b {
    top: 28%;
    right: 14%;
    animation: hud-bogo-spark 2.4s ease-in-out 0.8s infinite;
}

.site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__spark--c {
    bottom: 22%;
    left: 48%;
    animation: hud-bogo-spark 2.4s ease-in-out 1.5s infinite;
}

.site-header-status .hud-bogo-panel:hover {
    border-color: rgba(255, 214, 120, 0.95);
    color: #fff3c8;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 214, 120, 0.22),
        0 12px 28px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(255, 180, 70, 0.22),
        inset 0 1px 0 rgba(255, 240, 190, 0.28);
}

.site-header-status .hud-bogo-panel__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.site-header-status .hud-bogo-panel__tag {
    display: inline-flex;
    align-items: center;
    min-height: 1rem;
    padding: 0.06rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 196, 92, 0.7);
    background: rgba(255, 180, 70, 0.2);
    color: #ffe7b0;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__tag {
    animation: hud-bogo-tag-pop 1.8s ease-in-out infinite;
}

.site-header-status .hud-bogo-panel__rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1rem;
    padding: 0.06rem 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.45);
    background: rgba(var(--theme-gold-rgb), 0.2);
    color: var(--theme-text);
    font-family: "Orbitron", "Oxanium", "Tajawal", monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.site-header-status .hud-bogo-panel__stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    line-height: 1;
}

.site-header-status .hud-bogo-panel__line {
    font-family: "Orbitron", "Oxanium", "Tajawal", sans-serif;
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.05;
    color: #fff6d4;
    text-shadow: 0 0 14px rgba(255, 190, 80, 0.45);
}

.site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__line {
    animation: hud-bogo-text-glow 2.2s ease-in-out infinite;
}

.site-header-status .hud-bogo-panel__plus {
    font-family: "Orbitron", "Oxanium", "Tajawal", sans-serif;
    font-size: clamp(0.62rem, 0.88vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.05;
    color: #ffd27a;
}

.site-header-status .hud-bogo-panel__plus em {
    font-style: normal;
    display: inline-block;
    padding: 0.02rem 0.22rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 196, 92, 0.65);
    background: rgba(255, 180, 70, 0.22);
    color: #fff0c0;
    font-weight: 800;
}

.site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__plus em {
    animation: hud-bogo-free-bounce 1.6s ease-in-out infinite;
}

.site-header-status .hud-bogo-panel__meta {
    position: relative;
    z-index: 1;
    margin-top: 0;
    color: rgba(255, 226, 160, 0.88);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.site-header-status .hud-bogo-panel.is-cooldown {
    animation: none;
    border-color: rgba(var(--theme-gold-rgb), 0.42);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(var(--theme-gold-rgb), 0.18) 0%, transparent 55%),
        linear-gradient(180deg, rgba(41, 9, 11, 0.95) 0%, rgba(12, 7, 8, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(var(--theme-gold-rgb), 0.1),
        0 8px 18px rgba(0, 0, 0, 0.32);
    color: var(--theme-gold-pale);
}

.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__orbit,
.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__shine,
.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__spark {
    animation: none;
    opacity: 0;
}

.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__tag {
    border-color: rgba(var(--theme-gold-rgb), 0.45);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: var(--theme-gold-pale);
}

.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__line,
.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__plus {
    color: var(--theme-gold-pale);
    text-shadow: none;
}

.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__plus em {
    border-color: rgba(var(--theme-gold-rgb), 0.45);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: var(--theme-text);
}

.site-header-status .hud-bogo-panel.is-cooldown .hud-bogo-panel__meta {
    color: var(--theme-gold-soft);
}

@keyframes hud-bogo-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 196, 92, 0.12),
            0 8px 22px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 230, 170, 0.18);
        border-color: rgba(255, 196, 92, 0.55);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 214, 120, 0.35),
            0 8px 22px rgba(0, 0, 0, 0.35),
            0 0 26px rgba(255, 180, 70, 0.38),
            inset 0 1px 0 rgba(255, 230, 170, 0.3);
        border-color: rgba(255, 220, 120, 0.95);
    }
}

@keyframes hud-bogo-orbit {
    to { transform: rotate(360deg); }
}

@keyframes hud-bogo-shine {
    0%, 35% { transform: translateX(-130%); opacity: 0; }
    45% { opacity: 1; }
    70% { transform: translateX(130%); opacity: 0.85; }
    100% { transform: translateX(130%); opacity: 0; }
}

@keyframes hud-bogo-spark {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    35% { opacity: 1; transform: scale(1.2); }
    70% { opacity: 0.2; transform: scale(0.7); }
}

@keyframes hud-bogo-tag-pop {
    0%, 100% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.06); box-shadow: 0 0 12px rgba(255, 190, 80, 0.45); }
}

@keyframes hud-bogo-text-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 190, 80, 0.3); }
    50% { text-shadow: 0 0 18px rgba(255, 210, 100, 0.75), 0 0 28px rgba(255, 170, 60, 0.35); }
}

@keyframes hud-bogo-free-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-2px) scale(1.08); }
    60% { transform: translateY(0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-status .hud-bogo-panel.is-live,
    .site-header-status .hud-bogo-panel__orbit,
    .site-header-status .hud-bogo-panel__shine,
    .site-header-status .hud-bogo-panel__spark,
    .site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__tag,
    .site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__line,
    .site-header-status .hud-bogo-panel.is-live .hud-bogo-panel__plus em {
        animation: none !important;
    }

    .site-header-status .hud-bogo-panel:hover {
        transform: none;
    }
}

@media (max-width: 1199.98px) {
    .site-header-status .hud-dock {
        grid-template-columns: 1fr 1fr;
    }

    .site-hud-wrap.container {
        margin-top: 13.5rem;
    }
}

@media (max-width: 767.98px) {
    .site-header-status .hud-dock {
        grid-template-columns: 1fr 1fr;
        border-radius: 14px;
    }

    .site-header-status .hud-cell-fortress,
    .site-header-status .hud-cell-bonus {
        grid-column: 1 / -1;
    }

    .site-hud-wrap.container {
        margin-top: 1.75rem;
    }

    .site-header .site-header__hero {
        min-height: 148px;
        padding: 0.5rem 0 0.25rem;
    }
}

.site-header .site-header__logo-link {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.site-header .site-header__logo-link:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.site-header .site-header__logo-img {
    max-width: min(340px, 100%);
}

@media (min-width: 992px) {
    .site-header .site-header__brand-wrap {
        padding-left: 3.5%;
    }

    [dir="rtl"] .site-header .site-header__brand-wrap {
        padding-left: 0;
        padding-right: 30%;
    }
}

.site-header .site-header__times {
    width: 100%;
    max-width: 300px;
    align-self: flex-end;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(165deg, rgba(var(--theme-mid-rgb), 0.95) 0%, rgba(24, 9, 5, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.1),
        0 12px 28px rgba(0, 0, 0, 0.35);
    color: var(--theme-gold-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
}

.site-header .site-header__times-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

.site-header .site-header__times-icon {
    color: var(--theme-gold);
    font-size: 1rem;
}

.site-header .site-header__times-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}

.site-header .site-header__time-row + .site-header__time-row {
    margin-top: 6px;
}

.site-header .site-header__time-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 220, 185, 0.75);
}

.site-header .site-header__time-value {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--theme-text);
    letter-spacing: 0.03em;
}

@media screen and (min-width: 992px) {
    .site-navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

@media all and (max-width: 991.98px) {
    .site-navbar.navbar {
        position: relative;
        padding: 0;
        background: linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.96) 0%, rgba(var(--theme-ink-rgb), 0.98) 100%) !important;
        border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    }

    .site-navbar.navbar-expand-lg > .site-navbar-shell {
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: none;
        min-height: 52px;
        padding: 0.55rem 0.85rem 0;
    }

    .sparks-leaves {
        display: none;
    }

    .site-navbar-aside {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 0.55rem;
        order: 3;
        padding: 0.55rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(var(--theme-gold-rgb), 0.22);
        gap: 0.45rem;
    }

    [dir="rtl"] .site-navbar-aside {
        margin-right: 0;
        border-right: 0;
        padding-right: 0;
    }

    .site-navbar-pill {
        width: 100%;
        display: block;
        padding: 0;
    }

    .site-navbar-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
    }

    .navbar.site-navbar .nav-item .nav-link {
        width: 100%;
        height: auto;
        line-height: 1.3;
        justify-content: flex-start;
        padding: 0.78rem 0.95rem;
        border-radius: 10px;
    }

    .site-navbar-user,
    .site-navbar-lang {
        width: 100%;
        justify-content: stretch;
    }

    .site-navbar .site-navbar-user {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        width: 100%;
        gap: 0.4rem;
    }

    .site-navbar .site-navbar-user > .nav-item {
        width: 100%;
    }

    .site-navbar .site-navbar-user .nav-auth-link {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }

    .navbar.site-navbar .navbar-collapse.site-navbar-collapse {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 0.65rem;
        padding: 0.7rem 0.9rem 0.95rem;
        border-radius: 0 0 14px 14px;
        border: 0;
        border-bottom: 0;
        background: transparent;
        z-index: auto;
        gap: 0.45rem;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    }

    .site-navbar .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.35rem;
        transform: none !important;
    }

    .site-header .site-header__times {
        max-width: 100%;
        margin-top: 1rem;
    }
}

/* —— Global site layout (app, sidebars, footer) —— */
.site-body {
    scroll-behavior: smooth;
}

.site-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header-region {
    position: relative;
    flex-shrink: 0;
}

.site-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-top: 0.15rem !important;
}

.home-index .home-media-card {
    position: relative;
    margin-top: 1.15rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(var(--theme-gold-rgb), 0.16) 0%, transparent 55%),
        linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.98) 0%, rgba(var(--theme-ink-rgb), 0.99) 100%);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(var(--theme-gold-rgb), 0.12);
}

.home-index .home-media-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-gold-rgb), 0.55), rgba(var(--theme-gold-soft-rgb), 0.95), rgba(var(--theme-gold-rgb), 0.55), transparent);
    pointer-events: none;
    z-index: 1;
}

.home-index .home-media-card .theme-card-head-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 0;
    padding: 1.2rem 1rem 0.85rem;
    text-align: center;
}

.home-index .home-media-card .theme-card-head-center::after {
    content: "";
    display: block;
    width: min(220px, 60%);
    height: 1px;
    margin-top: 0.35rem;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-gold-rgb), 0.8), transparent);
}

.home-index .home-media-card .theme-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-soft);
    font-size: 0.9rem;
}

.home-index .home-media-card .theme-card-head-center p {
    margin: 0;
    font-family: "Cinzel", "Tajawal", serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-gold-soft);
}

.home-index .home-media-card .card-body {
    position: relative;
    z-index: 2;
    background: transparent;
}

.media-station {
    position: relative;
}

.media-station-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.media-station-track {
    display: flex;
    direction: ltr;
    transition: transform 0.45s ease;
}

.media-station-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.7);
    background: rgba(8, 4, 3, 0.78);
    color: var(--theme-gold-soft);
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.media-station-arrow--prev { left: 12px; }
.media-station-arrow--next { right: 12px; }

.media-station-arrow:hover,
.media-station-arrow:focus {
    color: #fff;
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.28);
    outline: none;
}

.theme-media-card {
    position: relative;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.32);
    background: #070403;
    cursor: pointer;
}

.media-video-thumb,
.media-video-player,
.media-video-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    border: 0;
}

.media-video-thumb.is-portrait {
    object-fit: contain;
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--theme-gold-rgb), 0.16), transparent 62%),
        #100806;
}

.media-video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-gold-soft);
    font-size: 2.2rem;
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--theme-gold-rgb), 0.22), transparent 60%),
        #100806;
}

.media-video-fallback--facebook {
    color: #8ab4ff;
}

.media-video-player {
    object-fit: contain;
}

.media-video-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.yt-play-btn {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 68px;
    height: 48px;
    border-radius: 14px;
    background: #ff0033;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.yt-play-btn::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 14px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}

.theme-media-card:hover .yt-play-btn,
.theme-media-card:focus .yt-play-btn {
    background: #ff1a45;
}

.yt-watch-bar {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.theme-media-card.is-playing {
    cursor: default;
}

.theme-media-card.is-playing .media-video-veil,
.theme-media-card.is-playing .yt-play-btn,
.theme-media-card.is-playing .yt-watch-bar,
.theme-media-card.is-playing .media-video-thumb,
.theme-media-card.is-playing .media-video-fallback {
    display: none;
}

@media (min-width: 992px) {
    .site-main {
        margin-top: 0.2rem !important;
    }
}

.site-main__row {
    margin-left: -16px;
    margin-right: -16px;
}

.site-main__row > [class*="col-"] {
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 991.98px) {
    .site-main__row {
        margin-left: 0;
        margin-right: 0;
    }

    .site-main__row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
    .site-app .container {
        max-width: 1580px;
    }

    .site-main__row {
        margin-left: -18px;
        margin-right: -18px;
    }

    .site-main__row > [class*="col-"] {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (min-width: 1400px) {
    .site-app .container {
        max-width: 1720px;
    }
}

@media (min-width: 1600px) {
    .site-app .container {
        max-width: 1840px;
    }
}

.site-main > .main-content > .card,
.site-main .main-content > .card {
    margin-bottom: 1.35rem;
}

.sidebar.site-sidebar .card {
    border-radius: 12px;
    overflow: visible;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.38);
    background: var(--theme-panel-gradient);
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.08),
        0 10px 22px rgba(0, 0, 0, 0.28);
    margin-bottom: 1.35rem;
}

.sidebar.site-sidebar .card .card-header {
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    background: rgba(0, 0, 0, 0.12);
}

.sidebar.site-sidebar .card .card-header p {
    margin-bottom: 0;
    color: var(--theme-gold-soft);
}

.sidebar.site-sidebar .card .card-body {
    color: var(--theme-text-soft);
}

.sidebar.site-sidebar .list-group-item,
.sidebar.site-sidebar .list-group-item-action {
    border-radius: 8px;
    margin-bottom: 4px;
}

.sidebar.site-sidebar--primary {
    padding-top: 2px;
}

.sidebar.site-sidebar a.download.site-sidebar__download,
.sidebar.site-sidebar a.download {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.55);
    min-height: 104px;
    margin-bottom: 1.35rem;
    padding: 0.95rem 1rem 0.95rem 1.1rem;
    background:
        linear-gradient(180deg, rgba(8, 10, 2, 0.35) 0%, rgba(8, 10, 2, 0.55) 100%),
        url(../images/download.jpg) center / cover no-repeat;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.sidebar.site-sidebar a.download.site-sidebar__download:hover,
.sidebar.site-sidebar a.download:hover {
    border-color: rgba(255, 220, 160, 0.85);
    filter: brightness(1.08);
    text-decoration: none;
}

.sidebar.site-sidebar .site-sidebar__download-sparkles {
    position: absolute;
    top: 0.55rem;
    right: 0.7rem;
    display: flex;
    gap: 0.45rem;
    pointer-events: none;
    z-index: 1;
}

.sidebar.site-sidebar .site-sidebar__download-sparkles i {
    color: #ffe2a0;
    font-size: 0.48rem;
    opacity: 0.7;
    animation: rank-guild-sparkle 1.9s ease-in-out infinite;
}

.sidebar.site-sidebar .site-sidebar__download-sparkles i:nth-child(2) {
    animation-delay: 0.35s;
    margin-top: 0.35rem;
}

.sidebar.site-sidebar .site-sidebar__download-sparkles i:nth-child(3) {
    animation-delay: 0.7s;
}

.sidebar.site-sidebar a.download .download-text {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.sidebar.site-sidebar .download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    padding: 0;
    width: 100%;
}

.sidebar.site-sidebar .site-widget__supporter-link {
    padding-left: 16px;
}

[dir="rtl"] .sidebar.site-sidebar .site-widget__supporter-link {
    padding-left: 0;
    padding-right: 16px;
}

.sidebar.site-sidebar .site-sidebar__download-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--theme-gold-soft);
}

.sidebar.site-sidebar .site-sidebar__download-kicker {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--theme-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

[dir="rtl"] .sidebar.site-sidebar a.download.site-sidebar__download,
[dir="rtl"] .sidebar.site-sidebar a.download {
    justify-content: flex-end;
    padding-left: 1rem;
    padding-right: 1.1rem;
}

[dir="rtl"] .sidebar.site-sidebar .download-text {
    align-items: flex-end;
    text-align: right;
}

/* —— Sidebar TOP 10 ranking (Old Road style, burgundy and gold) —— */
.site-ranking-card.ranking-card {
    overflow: visible;
}

.site-ranking-card .ranking-card-header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem;
    padding-bottom: 0.75rem !important;
}

.site-ranking-card .ranking-card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.site-ranking-card .ranking-card-title .theme-ico {
    color: var(--theme-gold);
    font-size: 0.95rem;
}

.site-ranking-card .ranking-card-title p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--theme-gold-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-ranking-card .ranking-card-body {
    padding-top: 0.85rem !important;
}

.site-ranking-card .ranking-tabs.nav,
#sidebar-ranking-tabs.nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.site-ranking-card .ranking-tabs .nav-item,
#sidebar-ranking-tabs .nav-item {
    margin: 0;
    width: 100%;
}

#sidebar-ranking-tabs .nav-link {
    width: 100%;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    padding: 0.32rem 0.35rem;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    border-radius: 8px;
    background: transparent;
    color: var(--theme-text-muted);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#sidebar-ranking-tabs .nav-link:after {
    content: none !important;
}

#sidebar-ranking-tabs .nav-link i {
    font-size: 0.72rem;
    color: var(--theme-gold);
    opacity: 0.85;
}

#sidebar-ranking-tabs .nav-link img,
.job-tab-img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

#sidebar-ranking-tabs .nav-link:hover,
#sidebar-ranking-tabs .nav-link:focus {
    color: var(--theme-gold-bright);
    background: rgba(var(--theme-gold-rgb), 0.12);
    border-color: rgba(var(--theme-gold-rgb), 0.45);
}

#sidebar-ranking-tabs .nav-link.active {
    color: var(--theme-gold-bright);
    background: transparent;
    border-color: var(--theme-gold);
}

#sidebar-ranking-tabs .nav-link.active i {
    opacity: 1;
}

.site-ranking-card .ranking-table-wrap {
    overflow: hidden;
    background: transparent;
}

.site-ranking-card .ranking-table {
    margin: 0 !important;
    background: transparent;
    border: 0 !important;
    color: var(--theme-text-soft);
}

.site-ranking-card .ranking-table thead th {
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-bright);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding: 0.55rem 0.65rem !important;
    text-align: center;
}

.site-ranking-card .ranking-table tbody th,
.site-ranking-card .ranking-table tbody td {
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.18) !important;
    border-right: 0 !important;
    padding: 0.48rem 0.65rem !important;
    vertical-align: middle;
    text-align: center;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    background: transparent;
}

.site-ranking-card .ranking-table tbody a {
    color: var(--theme-gold-soft);
    font-weight: 600;
}

.site-ranking-card .ranking-table tbody a:hover {
    color: var(--theme-gold-bright);
    text-decoration: none;
}

.site-ranking-card .ranking-table tbody tr.rank-top-1 {
    background: linear-gradient(90deg, rgba(var(--theme-gold-rgb), 0.22), transparent);
}

.site-ranking-card .ranking-table tbody tr.rank-top-2 {
    background: linear-gradient(90deg, rgba(196, 204, 220, 0.14), rgba(196, 204, 220, 0.03));
}

.site-ranking-card .ranking-table tbody tr.rank-top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.16), rgba(205, 127, 50, 0.03));
}

.site-ranking-card .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 2.4rem;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.site-ranking-card .rank-badge i {
    font-size: 0.72rem;
}

.site-ranking-card .rank-badge.rank-1 {
    color: #2a1608;
    background: linear-gradient(180deg, #ffe2a0, #e0a84a);
    box-shadow: 0 0 10px rgba(var(--theme-gold-rgb), 0.28);
}

.site-ranking-card .rank-badge.rank-2 {
    color: #1c2430;
    background: linear-gradient(180deg, #f0f4f8, #b7c0cd);
    box-shadow: 0 0 8px rgba(180, 190, 205, 0.22);
}

.site-ranking-card .rank-badge.rank-3 {
    color: #2a1608;
    background: linear-gradient(180deg, #e8b07a, #b56a32);
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.22);
}

.site-ranking-card .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    color: var(--theme-text-muted);
    font-weight: 700;
}

/* —— Sidebar Top 3 mini podium (Players / Guilds / Jobs) —— */
.side-mini-podium {
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: end;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.35rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background:
        radial-gradient(70% 120% at 50% 0%, rgba(var(--theme-gold-rgb), 0.18), transparent 62%),
        linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.78), rgba(var(--theme-ink-rgb), 0.55));
}

.side-mini-podium__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    min-height: 132px;
    padding: 0.45rem 0.28rem 0.5rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.45);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.side-mini-podium__card.is-rank-1 {
    min-height: 158px;
    border-color: rgba(var(--theme-gold-rgb), 0.7);
    background:
        radial-gradient(80% 70% at 50% 0%, rgba(var(--theme-gold-rgb), 0.3), transparent 65%),
        rgba(var(--theme-ink-rgb), 0.58);
    box-shadow: 0 0 18px rgba(var(--theme-gold-rgb), 0.14);
    transform: translateY(-6px);
    animation: side-mini-glow 3s ease-in-out infinite;
}

.side-mini-podium__card.is-rank-2 {
    min-height: 142px;
    border-color: rgba(190, 205, 220, 0.55);
    background:
        radial-gradient(80% 70% at 50% 0%, rgba(190, 205, 220, 0.22), transparent 65%),
        rgba(var(--theme-ink-rgb), 0.5);
    transform: translateY(-3px);
}

.side-mini-podium__card.is-rank-3 {
    min-height: 138px;
    border-color: rgba(205, 127, 50, 0.55);
    background:
        radial-gradient(80% 70% at 50% 0%, rgba(205, 127, 50, 0.22), transparent 65%),
        rgba(var(--theme-ink-rgb), 0.5);
    transform: translateY(-2px);
}

.side-mini-podium__card.is-empty {
    opacity: 0.45;
}

.side-mini-podium__ornaments {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.15rem;
}

.side-mini-podium__crown {
    color: #ffe2a0;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 8px rgba(var(--theme-gold-rgb), 0.5));
    animation: rank-guild-crown-float 2.4s ease-in-out infinite;
}

.side-mini-podium__laurel {
    color: #eef3f8;
    font-size: 0.88rem;
    filter: drop-shadow(0 0 7px rgba(196, 208, 222, 0.4));
    animation: rank-guild-crown-float 2.7s ease-in-out infinite;
}

.side-mini-podium__laurel.is-bronze {
    color: #e8b07a;
    filter: drop-shadow(0 0 7px rgba(205, 127, 50, 0.4));
}

.side-mini-podium__sparkles {
    position: absolute;
    inset: -0.15rem -1.1rem auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.side-mini-podium__sparkles i {
    color: #ffe2a0;
    font-size: 0.42rem;
    animation: rank-guild-sparkle 1.8s ease-in-out infinite;
}

.side-mini-podium__sparkles i:nth-child(2) {
    margin-top: -0.15rem;
    animation-delay: 0.35s;
}

.side-mini-podium__sparkles i:nth-child(3) {
    animation-delay: 0.7s;
}

.side-mini-podium__badge {
    margin-bottom: 0.05rem;
}

.side-mini-podium__crest {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.12);
    color: var(--theme-gold);
    font-size: 0.95rem;
    overflow: visible;
}

.side-mini-podium__crest.has-avatar {
    background:
        radial-gradient(circle at 30% 25%, rgba(var(--theme-gold-pale-rgb), 0.18), transparent 55%),
        linear-gradient(165deg, rgba(var(--theme-burgundy-rgb), 0.45), rgba(var(--theme-mid-rgb), 0.92));
    padding: 0;
}

.side-mini-podium__crest.has-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
    z-index: 0;
}

.side-mini-podium__crest.has-avatar em {
    z-index: 2;
}

.side-mini-podium__crest em {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: rgba(var(--theme-ink-rgb), 0.95);
    color: var(--theme-gold-bright);
    font-style: normal;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
}

.side-mini-podium__card.is-rank-1 .side-mini-podium__crest {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
    border-color: rgba(var(--theme-gold-rgb), 0.7);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: #ffe2a0;
    box-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.22);
    animation: side-mini-crest-pulse 2.6s ease-in-out infinite;
}

.side-mini-podium__card.is-rank-2 .side-mini-podium__crest {
    border-color: rgba(190, 205, 220, 0.55);
    color: #e8eef5;
}

.side-mini-podium__card.is-rank-3 .side-mini-podium__crest {
    border-color: rgba(205, 127, 50, 0.55);
    color: #e8b07a;
}

.side-mini-podium__tag {
    display: inline-flex;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-soft);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.side-mini-podium__card.is-rank-1 .side-mini-podium__tag {
    border-color: rgba(var(--theme-gold-rgb), 0.6);
    background: rgba(var(--theme-gold-rgb), 0.16);
    color: #ffe2a0;
}

.side-mini-podium__card.is-rank-2 .side-mini-podium__tag {
    border-color: rgba(196, 208, 222, 0.5);
    color: #e8eef5;
}

.side-mini-podium__card.is-rank-3 .side-mini-podium__tag {
    border-color: rgba(205, 127, 50, 0.5);
    color: #e8b07a;
}

.side-mini-podium__name {
    display: block;
    max-width: 100%;
    padding: 0 0.15rem;
    color: var(--theme-gold-bright) !important;
    text-decoration: none !important;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-mini-podium__card.is-rank-1 .side-mini-podium__name {
    font-size: 0.78rem;
}

.side-mini-podium__points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 4.2rem;
    padding: 0.2rem 0.32rem;
    border-radius: 7px;
    border: 1px solid var(--theme-gold);
    background: var(--theme-gold);
}

.side-mini-podium__card.is-rank-2 .side-mini-podium__points {
    border-color: #c4d0de;
    background: linear-gradient(180deg, #f0f4f8, #b7c0cd);
}

.side-mini-podium__card.is-rank-3 .side-mini-podium__points {
    border-color: #cd7f32;
    background: linear-gradient(180deg, #e8b07a, #b56a32);
}

.side-mini-podium__points strong {
    color: var(--theme-ink);
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.side-mini-podium__points small {
    color: var(--theme-ink);
    opacity: 0.7;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes side-mini-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.1); }
    50% { box-shadow: 0 0 20px rgba(var(--theme-gold-rgb), 0.28); }
}

@keyframes side-mini-crest-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .side-mini-podium__crown,
    .side-mini-podium__laurel,
    .side-mini-podium__sparkles i,
    .side-mini-podium__card.is-rank-1,
    .side-mini-podium__card.is-rank-1 .side-mini-podium__crest,
    .sidebar.site-sidebar .site-sidebar__download-sparkles i,
    .site-unique-kills-card .unique-kill-item.is-latest .unique-image,
    .site-unique-kills-card .unique-image__spark,
    .donation-page .donate-pkg-row.has-bonus,
    .donation-page .donate-pkg-row__bonus i {
        animation: none !important;
    }
}

/* —— Latest Unique Kills (Old Road style, burgundy and gold) —— */
.site-unique-kills-card .site-unique-kills-head {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
}

.site-unique-kills-card .site-unique-kills-head .theme-ico {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(160deg, rgba(var(--theme-gold-rgb), 0.28), rgba(var(--theme-mid-rgb), 0.75));
    color: var(--theme-gold-pale);
    font-size: 0.78rem;
}

.site-unique-kills-card .site-unique-kills-head p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--theme-gold-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-unique-kills-card .site-unique-kills-body {
    padding: 0.45rem 0.4rem 0.55rem 0.55rem !important;
    overflow: hidden;
}

.site-unique-kills-card .server-unique-kills {
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.05rem 0.35rem 0.05rem 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-gold-rgb), 0.65) rgba(0, 0, 0, 0.25);
}

.site-unique-kills-card .server-unique-kills::-webkit-scrollbar {
    width: 6px;
}

.site-unique-kills-card .server-unique-kills::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
}

.site-unique-kills-card .server-unique-kills::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-gold-soft), var(--theme-gold));
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.site-unique-kills-card .server-unique-kills::-webkit-scrollbar-thumb:hover {
    background: var(--theme-gold-pale);
    background-clip: padding-box;
}

.site-unique-kills-card .uniques {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.15rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.18);
    box-shadow: none;
}

.site-unique-kills-card .unique-kill-item:last-child .uniques {
    border-bottom: 0;
}

.site-unique-kills-card .unique-image {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.5);
    background:
        radial-gradient(circle at 30% 25%, rgba(var(--theme-gold-pale-rgb), 0.22), transparent 55%),
        linear-gradient(165deg, rgba(var(--theme-burgundy-rgb), 0.55), rgba(var(--theme-mid-rgb), 0.92));
    color: var(--theme-text);
    font-size: 0.88rem;
    box-shadow: inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.12);
}

.site-unique-kills-card .unique-kill-item.is-latest .uniques {
    border-radius: 10px;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    background: linear-gradient(90deg, rgba(var(--theme-gold-rgb), 0.12), transparent 70%);
    border-bottom-color: rgba(var(--theme-gold-rgb), 0.28);
}

.site-unique-kills-card .unique-kill-item.is-latest .unique-image {
    border-color: rgba(var(--theme-gold-rgb), 0.7);
    color: #ffe2a0;
    box-shadow:
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.12),
        0 0 12px rgba(var(--theme-gold-rgb), 0.22);
    animation: unique-latest-pulse 2.4s ease-in-out infinite;
}

.site-unique-kills-card .unique-image__spark {
    position: absolute;
    top: -0.35rem;
    right: -0.3rem;
    color: #ffe2a0;
    font-size: 0.48rem;
    filter: drop-shadow(0 0 6px rgba(var(--theme-gold-rgb), 0.55));
    animation: rank-guild-sparkle 1.7s ease-in-out infinite;
}

.site-unique-kills-card .unique-kill-item.is-latest .unique-name {
    color: var(--theme-gold-bright);
}

@keyframes unique-latest-pulse {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.12), 0 0 8px rgba(var(--theme-gold-rgb), 0.12); }
    50% { box-shadow: inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.12), 0 0 16px rgba(var(--theme-gold-rgb), 0.35); }
}

.site-unique-kills-card .unique-data {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-height: 44px;
}

.site-unique-kills-card .unique-name {
    color: var(--theme-text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-unique-kills-card .unique-killer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    width: fit-content;
    padding: 0.22rem 0.55rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(0, 0, 0, 0.35);
}

.site-unique-kills-card .killed-by {
    color: var(--theme-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.site-unique-kills-card .killer-name,
.site-unique-kills-card .killer-name a {
    color: var(--theme-gold-bright);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-unique-kills-card .killer-name a:hover {
    color: var(--theme-text);
    text-decoration: none;
}

.site-unique-kills-card .unique-kill-empty {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    padding: 0.35rem 0.1rem;
}

/* Latest Joins reuses the Event Schedule row styles. */
.site-latest-joins-card .timer-name a {
    color: var(--theme-text);
    font-weight: 600;
    text-decoration: none;
}

.site-latest-joins-card .timer-name a:hover {
    color: var(--theme-gold-bright);
    text-decoration: none;
}

/* —— Job Statistics (Old Road style, burgundy and gold) —— */
.site-job-stats-card .site-job-stats-head {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
}

.site-job-stats-card .site-job-stats-head .theme-ico {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(160deg, rgba(var(--theme-gold-rgb), 0.28), rgba(var(--theme-mid-rgb), 0.75));
    color: var(--theme-gold-pale);
    font-size: 0.78rem;
}

.site-job-stats-card .site-job-stats-head p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--theme-gold-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-job-stats-card .job-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-job-stats-card .job-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0.1rem 0.75rem;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.18);
}

.site-job-stats-card .job-stat-item:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
}

.site-job-stats-card .job-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.site-job-stats-card .job-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.site-job-stats-card .job-stat-img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background: rgba(0, 0, 0, 0.28);
    padding: 2px;
}

.site-job-stats-card .job-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-text);
}

.site-job-stats-card .job-percentage {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--theme-gold-bright);
}

.site-job-stats-card .job-progress.progress {
    height: 11px;
    margin: 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--theme-ink-rgb), 0.75);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-job-stats-card .job-progress .progress-bar {
    border-radius: 999px;
}

.site-job-stats-card .bg-trader {
    background: linear-gradient(90deg, var(--theme-burgundy), var(--theme-gold) 55%, var(--theme-gold-soft)) !important;
    box-shadow: 0 0 10px rgba(var(--theme-gold-rgb), 0.28);
}

.site-job-stats-card .bg-hunter {
    background: linear-gradient(90deg, #2f5f8a, #5a9fd4 55%, #a8d4f0) !important;
    box-shadow: 0 0 10px rgba(90, 159, 212, 0.25);
}

.site-job-stats-card .bg-thief {
    background: linear-gradient(90deg, #6a2a5a, #c45a9a 55%, #e8a8c8) !important;
    box-shadow: 0 0 10px rgba(196, 90, 154, 0.25);
}

.site-job-stats-card .job-stat-empty {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    padding: 0.35rem 0.1rem;
}

/* —— Event Schedule (Old Road style, burgundy and gold) —— */
.site-event-timers-card .site-event-timers-head,
.site-latest-joins-card .site-event-timers-head {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
}

.site-event-timers-card .site-event-timers-head .theme-ico,
.site-latest-joins-card .site-event-timers-head .theme-ico {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(160deg, rgba(var(--theme-gold-rgb), 0.28), rgba(var(--theme-mid-rgb), 0.75));
    color: var(--theme-gold-pale);
    font-size: 0.78rem;
}

.site-event-timers-card .site-event-timers-head p,
.site-latest-joins-card .site-event-timers-head p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--theme-gold-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-event-timers-card .site-event-timers-body,
.site-latest-joins-card .site-event-timers-body {
    padding-right: 0.55rem !important;
}

.site-event-timers-card .server-event-timers,
.site-latest-joins-card .server-event-timers {
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.1rem 0.35rem 0.1rem 0;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-gold-rgb), 0.65) rgba(0, 0, 0, 0.25);
}

.site-event-timers-card .server-event-timers::-webkit-scrollbar,
.site-latest-joins-card .server-event-timers::-webkit-scrollbar {
    width: 6px;
}

.site-event-timers-card .server-event-timers::-webkit-scrollbar-track,
.site-latest-joins-card .server-event-timers::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
}

.site-event-timers-card .server-event-timers::-webkit-scrollbar-thumb,
.site-latest-joins-card .server-event-timers::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-gold-soft), var(--theme-gold));
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.site-event-timers-card .server-event-timers::-webkit-scrollbar-thumb:hover,
.site-latest-joins-card .server-event-timers::-webkit-scrollbar-thumb:hover {
    background: var(--theme-gold-pale);
    background-clip: padding-box;
}

.site-event-timers-card .timer-row,
.site-latest-joins-card .timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0;
    padding: 0.62rem 0.1rem;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.18);
    color: var(--theme-text-soft);
}

.site-event-timers-card .timer-row:last-child,
.site-latest-joins-card .timer-row:last-child {
    border-bottom: 0;
}

.site-event-timers-card .timer-name,
.site-latest-joins-card .timer-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--theme-text);
}

.site-event-timers-card .timer-name span,
.site-latest-joins-card .timer-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-event-timers-card .timer-name i,
.site-latest-joins-card .timer-name i {
    color: var(--theme-gold);
    width: 1em;
    text-align: center;
    flex-shrink: 0;
}

.site-event-timers-card .timer-value,
.site-latest-joins-card .timer-value {
    flex-shrink: 0;
    color: var(--theme-gold-bright);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.site-event-timers-card .timer-empty,
.site-latest-joins-card .timer-empty {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    padding: 0.35rem 0.1rem;
}

/* —— Facebook + Discord cards (Old Road style, burgundy and gold) —— */
.site-discord-card .card-header:after {
    display: none !important;
}

.site-facebook-card .site-facebook-head,
.site-discord-card .site-discord-head {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
}

.site-discord-card .site-discord-head {
    justify-content: space-between;
}

.site-facebook-card .site-widget-title,
.site-discord-card .site-widget-title,
.site-discord-card .discord-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.site-facebook-card .site-facebook-head .theme-ico,
.site-discord-card .site-widget-title .theme-ico {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(160deg, rgba(var(--theme-gold-rgb), 0.28), rgba(var(--theme-mid-rgb), 0.75));
    color: var(--theme-gold-pale);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.site-facebook-card .site-facebook-head p,
.site-discord-card .site-widget-title p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--theme-gold-soft);
    font-family: "Source Sans 3", "Tajawal", Tahoma, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-discord-card .discord-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    color: var(--theme-gold-bright);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    font-weight: 700;
}

.site-discord-card .discord-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7dcf6a;
    box-shadow: 0 0 8px rgba(125, 207, 106, 0.55);
}

.site-facebook-card .site-facebook-body {
    padding: 0.7rem 0.7rem 0.35rem !important;
}

.site-facebook-card .facebook-widget {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(var(--theme-ink-rgb), 0.55);
}

.site-facebook-card .facebook-widget-feed {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--theme-ink);
}

.site-facebook-card .facebook-widget-feed iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 500px !important;
    border: 0;
    background: transparent;
}

.site-discord-card .site-discord-body {
    padding: 0.85rem 0.9rem !important;
}

.site-discord-card .discord-panel {
    border-radius: 12px;
    background: rgba(var(--theme-ink-rgb), 0.45);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    padding: 0.45rem;
}

.site-discord-card .discord-members {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-gold-rgb), 0.65) rgba(0, 0, 0, 0.25);
}

.site-discord-card .discord-members::-webkit-scrollbar {
    width: 6px;
}

.site-discord-card .discord-members::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
}

.site-discord-card .discord-members::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-gold-soft), var(--theme-gold));
    border-radius: 999px;
}

.site-discord-card .discord-member {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.site-discord-card .discord-member:hover {
    background: rgba(var(--theme-gold-rgb), 0.1);
    border-color: rgba(var(--theme-gold-rgb), 0.28);
}

.site-discord-card .discord-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.site-discord-card .discord-avatar img,
.site-discord-card .discord-avatar-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.site-discord-card .discord-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-gold-rgb), 0.2);
    color: var(--theme-gold-pale);
    font-size: 0.85rem;
}

.site-discord-card .discord-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7dcf6a;
    border: 2px solid var(--theme-dark-mid);
    box-shadow: 0 0 6px rgba(125, 207, 106, 0.45);
}

.site-discord-card .discord-status--idle {
    background: #f0c14a;
}

.site-discord-card .discord-status--dnd {
    background: #ed4245;
}

.site-discord-card .discord-status--offline {
    background: #747f8d;
}

.site-discord-card .discord-meta {
    min-width: 0;
    flex: 1;
}

.site-discord-card .discord-name {
    color: var(--theme-text);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
}

.site-discord-card .discord-empty {
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    padding: 0.45rem 0.35rem;
}

.site-social-card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.22) !important;
    padding: 0.85rem 0.9rem 1rem !important;
}

.site-social-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.18), rgba(0, 0, 0, 0.35));
    color: var(--theme-text) !important;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-social-join-btn i {
    font-size: 1.1rem;
    color: var(--theme-gold);
}

.site-social-join-btn:hover {
    color: var(--theme-gold-bright) !important;
    border-color: var(--theme-gold);
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.28), rgba(0, 0, 0, 0.4));
    transform: translateY(-1px);
    text-decoration: none !important;
}

.site-social-join-btn--facebook i {
    color: #8ab4ff;
}

.site-social-join-btn--discord i {
    color: var(--theme-gold);
}

.site-floating-icons.floating-icons {
    z-index: 1035;
}

#footer.site-footer {
    flex-shrink: 0;
    position: relative;
    isolation: isolate;
    overflow: visible;
    margin-top: 1.25rem;
    padding: 0;
    border-top: 0;
    /* base = page tone; art starts below the footer-line strip */
    background-color: var(--theme-dark);
    background-image: none;
}

/* footer art only under the separator — clear break from page background */
#footer.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 77px;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-color: var(--theme-dark);
    background-image: url(../images/footer-bg.jpg);
    background-repeat: no-repeat;
    background-position: center 12%;
    background-size: cover;
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    box-shadow: inset 0 18px 28px -18px rgba(0, 0, 0, 0.65);
}

#footer.site-footer > .container,
#footer.site-footer .site-footer__bottom {
    position: relative;
    z-index: 1;
}

#footer.site-footer .site-footer__totop.toTopBlock {
    position: relative;
    z-index: 2;
    margin: 0;
    height: 77px;
    padding-top: 16px;
    background-color: var(--theme-dark);
    background-image: url(../images/footer-line.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: min(1200px, 100%) auto;
}

.site-footer__inner {
    padding: 0.35rem 0.75rem 1.5rem;
}

.site-footer__brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 1.35rem;
    text-align: center;
}

.site-footer__brand a {
    display: inline-flex;
    margin-inline: auto;
}

.site-footer__brand img {
    display: block;
    max-width: 190px;
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.site-footer__studio {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.65rem;
    font-family: "Oxanium", "Source Sans 3", "Tajawal", sans-serif;
}

.site-footer__studio-card {
    --kabloz-cyan: #3de7ff;
    --kabloz-cyan-soft: #7af0ff;
    --kabloz-deep: #041018;
    position: relative;
    display: block;
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    border: 1px solid rgba(61, 231, 255, 0.38);
    background:
        linear-gradient(135deg, rgba(61, 231, 255, 0.12) 0%, transparent 42%),
        linear-gradient(180deg, rgba(8, 28, 40, 0.95) 0%, rgba(4, 10, 18, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(61, 231, 255, 0.12);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-footer__studio-card:hover,
.site-footer__studio-card:focus {
    border-color: rgba(122, 240, 255, 0.7);
    box-shadow:
        0 0 0 1px rgba(61, 231, 255, 0.15) inset,
        0 14px 36px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(61, 231, 255, 0.22);
    transform: translateY(-2px);
    text-decoration: none !important;
    color: inherit;
}

.site-footer__studio-glow {
    position: absolute;
    inset: auto -20% -55% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 231, 255, 0.28) 0%, transparent 68%);
    pointer-events: none;
}

.site-footer__studio-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    padding: 0.95rem 1.15rem;
}

.site-footer__studio-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.site-footer__studio-logo-wrap {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(61, 231, 255, 0.45);
    background:
        radial-gradient(circle at 50% 40%, rgba(61, 231, 255, 0.22) 0%, transparent 70%),
        #02080c;
    box-shadow: 0 0 16px rgba(61, 231, 255, 0.2);
}

.site-footer__studio-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-footer__studio-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

[dir="rtl"] .site-footer__studio-text {
    align-items: flex-end;
    text-align: right;
}

.site-footer__studio-label {
    font-family: "Oxanium", "Tajawal", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(122, 240, 255, 0.78);
}

.site-footer__studio-name {
    margin-top: 0.12rem;
    font-family: "Oxanium", "Tajawal", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 10%, #7af0ff 55%, #3de7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(61, 231, 255, 0.35));
}

.site-footer__studio-tm {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: super;
    margin-inline-start: 0.08em;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--kabloz-cyan-soft);
    -webkit-text-fill-color: var(--kabloz-cyan-soft);
    filter: none;
}

.site-footer__studio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(61, 231, 255, 0.5);
    background: linear-gradient(180deg, rgba(61, 231, 255, 0.22) 0%, rgba(61, 231, 255, 0.08) 100%);
    color: #e9fcff;
    font-family: "Oxanium", "Tajawal", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-footer__studio-card:hover .site-footer__studio-btn {
    border-color: rgba(122, 240, 255, 0.85);
    background: linear-gradient(180deg, rgba(61, 231, 255, 0.34) 0%, rgba(61, 231, 255, 0.14) 100%);
    color: #fff;
}

.site-footer__studio-btn-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.site-footer__studio-card:hover .site-footer__studio-btn-icon {
    transform: translateX(3px);
}

[dir="rtl"] .site-footer__studio-card:hover .site-footer__studio-btn-icon {
    transform: translateX(-3px);
}

[dir="rtl"] .site-footer__studio-btn-icon {
    transform: scaleX(-1);
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem 0;
    margin: 0 auto 1.15rem;
    max-width: 920px;
}

.site-footer__menu a {
    position: relative;
    padding: 0.4rem 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    filter: none !important;
}

.site-footer__menu a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--theme-gold);
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.85;
}

[dir="rtl"] .site-footer__menu a + a::before {
    left: auto;
    right: 0;
    transform: translate(50%, -50%) rotate(45deg);
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
    color: var(--theme-gold-soft);
    text-decoration: none;
    filter: none !important;
}

.site-footer__socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1.45rem;
}

.site-footer__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: rgba(0, 0, 0, 0.35);
    color: var(--theme-gold-soft);
    font-size: 0.95rem;
    text-decoration: none;
    filter: none !important;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.site-footer__social-btn:hover,
.site-footer__social-btn:focus {
    transform: translateY(-2px);
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.2);
    color: #fff;
    text-decoration: none;
}

.site-footer__social-btn--facebook:hover { color: #8ab4ff; }
.site-footer__social-btn--discord:hover { color: #c7b6ff; }
.site-footer__social-btn--youtube:hover { color: #ff8a8a; }
.site-footer__social-btn--whatsapp:hover { color: #25d366; }

.site-footer__partners {
    text-align: center;
}

.site-footer__partners-label {
    margin: 0 0 0.8rem;
    color: var(--theme-gold-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-footer__partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.site-footer__partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 96px;
    min-height: 78px;
    padding: 0.5rem 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    filter: none !important;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-footer__partner img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: none;
}

.site-footer__partner span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.site-footer__partner:hover,
.site-footer__partner:focus {
    transform: translateY(-2px);
    border-color: var(--theme-gold);
    color: var(--theme-gold-soft);
    text-decoration: none;
}

.site-footer__bottom {
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    padding: 1rem 0 1.15rem;
}

.site-footer__copybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-footer__copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.site-footer__copy p {
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.site-footer__copy .gold-text {
    color: var(--theme-gold-soft);
    font-weight: 700;
}

.site-footer__legal {
    margin-top: 0.35rem !important;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem !important;
    line-height: 1.45;
}

.site-footer__credit-col {
    flex: 0 0 auto;
    text-align: center;
}

.site-credit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-credit__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-credit__wordmark {
    display: block;
    width: auto;
    height: 46px;
    max-width: min(220px, 46vw);
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.site-credit__link:hover .site-credit__wordmark {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 4px 14px rgba(var(--theme-gold-rgb), 0.45));
}

.dev-card {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    z-index: 40;
    width: 320px;
    overflow: hidden;
    border-radius: 10px;
    background: #0b1418;
    border: 1px solid rgba(80, 200, 255, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    text-align: left;
}

.site-credit:hover .dev-card,
.site-credit:focus-within .dev-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dev-card__banner {
    display: block;
    height: 100px;
    overflow: hidden;
    background: #061018;
}

.dev-card__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.dev-card__identity {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 44px;
    margin: -38px 14px 0;
}

.dev-card__avatar {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #000;
    border: 6px solid #0b1418;
    box-sizing: content-box;
    flex: none;
    box-shadow: 0 0 0 2px rgba(64, 220, 255, 0.75), 0 0 14px rgba(64, 220, 255, 0.35);
}

.dev-card__avatar img {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

.dev-card__status {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 65% 35%, transparent 42%, #f0b232 43%),
        #0b1418;
    border: 4px solid #0b1418;
    box-sizing: content-box;
}

.dev-card__domain {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(12, 20, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d7f3ff;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}

.dev-card__domain i { color: #3ba55d; font-size: 0.75rem; }
.dev-card__domain:hover { color: #fff; border-color: rgba(90, 214, 255, 0.4); text-decoration: none; }

.dev-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.85rem 16px 16px;
}

.dev-card__name,
.dev-card__handle,
.dev-card__tagline,
.dev-card__about,
.dev-card__about-k {
    margin: 0;
}

.dev-card__name {
    color: #f2f3f5;
    font-size: 1.15rem;
    font-weight: 700;
}

.dev-card__handle {
    color: #9bb4c2;
    font-size: 0.84rem;
}

.dev-card__tagline {
    margin-top: 0.15rem;
    color: #c5d0d6;
    font-size: 0.8rem;
    line-height: 1.35;
}

.dev-card__meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
}

.dev-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #1a242c;
    border: 1px solid rgba(90, 214, 255, 0.35);
    color: #7fe7ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dev-card__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #8ec4d8;
    font-size: 0.82rem;
}

.dev-card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.75rem;
}

.dev-card__msg,
.dev-card__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    background: #2b2d31;
    color: #f2f3f5;
    text-decoration: none;
}

.dev-card__msg {
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.dev-card__msg:hover { background: #5865f2; color: #fff; text-decoration: none; }

.dev-card__icon-btn {
    width: 34px;
}

.dev-card__icon-btn:hover { background: #3a3d44; color: #fff; text-decoration: none; }

.dev-card__rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.75rem 0 0.55rem;
    background: rgba(255, 255, 255, 0.08);
}

.dev-card__about-k {
    color: #9bb4c2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dev-card__about {
    margin-top: 0.3rem;
    color: #dbdee1;
    font-size: 0.84rem;
    line-height: 1.45;
}

.dev-card__link { color: #5ad6ff; }
.dev-card__link:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
    .site-footer__partner {
        width: 88px;
    }
}

@media (max-width: 767.98px) {
    .site-footer__copybar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .site-footer__copy,
    .site-footer__legal {
        text-align: center;
    }

    .dev-card {
        right: 50%;
        transform: translateX(50%) translateY(8px);
    }

    .site-credit:hover .dev-card,
    .site-credit:focus-within .dev-card {
        transform: translateX(50%) translateY(0);
    }
}

@media (max-width: 575.98px) {
    .site-footer__inner {
        padding-bottom: 1.15rem;
    }

    .site-footer__menu a {
        padding: 0.35rem 0.7rem;
        letter-spacing: 0.08em;
    }
}


@media all and (max-width: 991.98px) {
    .site-floating-icons.floating-icons {
        display: none;
    }
}

/* Floating social dock (Facebook / Discord) — right side on all viewports */
.social-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.social-dock > * {
    pointer-events: auto;
}

.social-dock__btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    color: var(--theme-text);
    background: linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.96) 0%, rgba(10, 12, 4, 0.98) 100%);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.social-dock__btn:hover {
    color: var(--theme-text);
    text-decoration: none !important;
    border-color: rgba(var(--theme-gold-pale-rgb), 0.85);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.social-dock__btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-gold-rgb), 0.35);
}

.social-dock__btn--facebook {
    color: #dbe8ff;
}

.social-dock__btn--discord {
    color: #dbe5ff;
}

.floating-icons .icon .icon-btn.pvp {
    color: #ffd4c4;
}

.floating-icons .icon .icon-btn.pvp:hover > *,
.floating-icons .icon .icon-btn.pvp:focus > * {
    background: linear-gradient(1deg, rgb(255 100 80) 0%, rgb(60 20 10) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-modal .modal-content.social-modal__content {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(180deg, rgba(10, 12, 4, 0.98) 0%, rgba(var(--theme-ink-rgb), 0.99) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.social-modal .social-modal__header {
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background: rgba(0, 0, 0, 0.25);
}

.social-modal .social-modal__header .modal-title {
    color: var(--theme-text-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.social-modal .social-modal__body {
    max-height: 75vh;
    overflow-y: auto;
    background: rgba(10, 4, 2, 0.35);
}

.social-modal .social-modal__body--facebook {
    min-height: 200px;
}

.social-modal .social-modal__discord-list {
    max-height: 360px;
}

.social-modal .social-modal__discord-iframe {
    min-height: 360px;
}

.social-modal .modal-footer {
    background: rgba(0, 0, 0, 0.2);
}

@media all and (max-width: 575.98px) {
    .social-dock {
        bottom: 16px;
        right: 12px;
        left: auto;
    }

    .social-dock__btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Latest PVP — opened from secondary sidebar (Bootstrap modal) */
.pvp-records-modal .pvp-records-modal__content {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(180deg, rgba(10, 12, 4, 0.98) 0%, rgba(var(--theme-ink-rgb), 0.99) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.pvp-records-modal .pvp-records-modal__header {
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background: rgba(0, 0, 0, 0.25);
}

.pvp-records-modal .pvp-records-modal__header .modal-title {
    color: var(--theme-text-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.pvp-records-modal .pvp-records-modal__body {
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(10, 4, 2, 0.35);
}

.pvp-records-modal .pvp-records-modal__list .list-group-item {
    color: var(--theme-text-soft);
}

.pvp-records-modal .pvp-records-modal__list a {
    color: var(--theme-gold-soft);
}

.pvp-records-modal .pvp-records-modal__list a:hover {
    color: var(--theme-text);
}

.main-content.login-page > .card.hsss.auth-login-card {
    background: linear-gradient(180deg, var(--theme-dark-elevated) 0%, var(--theme-dark-mid) 48%, var(--theme-ink) 100%) !important;
    border: 1px solid var(--theme-border-strong) !important;
}

/* Home news — force dark burgundy panel (override card texture / .hsss) */
.main-content.home-index > .card.home-index__panel.hsss {
    background: linear-gradient(180deg, var(--theme-dark-elevated) 0%, var(--theme-dark-mid) 48%, var(--theme-ink) 100%) !important;
    border-color: var(--theme-border-strong) !important;
}

.main-content.home-index > .card.home-index__panel.hsss > .card-header,
.main-content.home-index > .card.home-index__panel.hsss > .home-index__panel-body {
    background: transparent !important;
    color: var(--theme-text-soft) !important;
}

.main-content.home-index .home-index__panel-title {
    color: var(--theme-gold-soft) !important;
    -webkit-text-fill-color: var(--theme-gold-soft) !important;
}

.main-content.home-index .home-index__empty {
    background: rgba(var(--theme-ink-rgb), 0.72) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.45) !important;
}

.main-content.home-index .home-index__empty-icon {
    color: var(--theme-gold-soft) !important;
}

.main-content.home-index .home-index__empty-text {
    color: var(--theme-text-soft) !important;
}

.main-content.home-index .card.home-index__article {
    background: linear-gradient(180deg, var(--theme-dark-elevated) 0%, var(--theme-dark-mid) 55%, var(--theme-ink) 100%) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.35) !important;
}

.main-content.home-index .home-index__article-title {
    color: var(--theme-text) !important;
    -webkit-text-fill-color: var(--theme-text) !important;
}

.main-content.home-index .home-index__article-meta {
    color: var(--theme-text-muted) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.35) !important;
    background: rgba(var(--theme-ink-rgb), 0.65) !important;
}

.main-content.home-index .home-index__article-body,
.main-content.home-index .home-index__article-prose {
    color: var(--theme-text-soft) !important;
}

.main-content.home-index .home-index__read-more {
    color: var(--theme-gold-soft) !important;
}

.main-content.home-index .home-index__read-more:hover {
    color: var(--theme-gold) !important;
}

/* ========== Ranking page (Old Road sizes + burgundy and gold colors) ========== */
.rank-hall {
    margin: 0 0 1.5rem;
}

.rank-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0.85rem;
    padding: 1.35rem 1.4rem 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--theme-border);
    background:
        radial-gradient(80% 140% at 8% -30%, var(--theme-glow), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%),
        linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.92) 0%, rgba(var(--theme-ink-rgb), 0.96) 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.rank-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-gold), transparent);
    opacity: 0.75;
}

.rank-hero-kicker {
    margin: 0;
    color: var(--theme-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.rank-hero-title {
    margin: 0.4rem 0 0;
    color: var(--theme-gold-bright);
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 18px var(--theme-glow);
}

.rank-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    background: linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.88) 0%, rgba(var(--theme-ink-rgb), 0.94) 100%);
}

.rank-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.22);
    border-radius: 8px;
    background: transparent;
    color: var(--theme-text-muted);
    text-decoration: none !important;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.rank-tab i {
    color: var(--theme-gold);
    font-size: 0.78rem;
}

.rank-tab img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.rank-tab:hover {
    color: var(--theme-gold-bright);
    border-color: var(--theme-border);
    background: rgba(var(--theme-gold-rgb), 0.08);
}

.rank-tab.is-active {
    color: var(--theme-gold-bright);
    border-color: var(--theme-gold);
    background: rgba(var(--theme-gold-rgb), 0.14);
}

.rank-tab.is-active i {
    color: var(--theme-gold-bright);
}

.rank-podium {
    margin: 0 0 1rem;
    border-radius: 14px;
    border: 1px solid var(--theme-border);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.9) 0%, rgba(var(--theme-ink-rgb), 0.96) 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.rank-podium-head,
.ranking-table-panel-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

.rank-podium-head .theme-ico,
.ranking-table-panel-head .theme-ico {
    color: var(--theme-gold);
    font-size: 0.9rem;
}

.rank-podium-head p,
.ranking-table-panel-head p {
    margin: 0;
    color: var(--theme-text);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rank-podium-stage {
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: end;
    gap: 0.65rem;
    padding: 1rem 0.8rem 1.05rem;
}

.rank-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-height: 240px;
    padding: 0.85rem 0.55rem 0.8rem;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.12), transparent 58%),
        rgba(var(--theme-ink-rgb), 0.42);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
    transition: border-color .15s ease, transform .15s ease;
}

.rank-podium-card:hover {
    border-color: var(--theme-gold);
}

.rank-podium-card.is-rank-1 {
    grid-column: 2;
    min-height: 300px;
    border-color: var(--theme-gold);
    background:
        radial-gradient(80% 70% at 50% 0%, var(--theme-glow), transparent 62%),
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.16), transparent 58%),
        rgba(var(--theme-ink-rgb), 0.5);
}

.rank-podium-card.is-rank-2 {
    grid-column: 1;
    min-height: 260px;
    border-color: rgba(190, 205, 220, 0.38);
}

.rank-podium-card.is-rank-3 {
    grid-column: 3;
    min-height: 240px;
    border-color: rgba(205, 127, 50, 0.42);
}

.rank-podium-card.is-empty {
    opacity: 0.48;
}

.rank-podium-figure {
    position: relative;
    width: 92px;
    height: 150px;
}

.rank-podium-card.is-rank-1 .rank-podium-figure {
    width: 110px;
    height: 180px;
}

.rank-podium-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.rank-podium-avatar.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(var(--theme-gold-rgb), 0.1);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    color: var(--theme-gold);
    font-size: 1.35rem;
}

.rank-podium-avatar.is-hidden {
    display: none !important;
}

.rank-podium-copy {
    min-width: 0;
    width: 100%;
}

.rank-podium-name {
    display: block;
    color: var(--theme-gold-bright) !important;
    text-decoration: none !important;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-podium-card.is-rank-1 .rank-podium-name {
    font-size: 1.12rem;
}

.rank-podium-meta {
    margin: 0.15rem 0 0;
    color: var(--theme-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-podium-score {
    margin: 0.1rem 0 0;
    min-width: 86px;
    min-height: 40px;
    padding: 0.3rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--theme-gold);
    background: var(--theme-gold);
}

.rank-podium-score strong {
    display: block;
    color: var(--theme-ink);
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.rank-podium-score span {
    color: var(--theme-ink);
    opacity: 0.72;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* —— Clean Top Guilds podium —— */
.rank-podium.rank-podium--guilds {
    background:
        radial-gradient(90% 80% at 50% -10%, rgba(var(--theme-gold-rgb), 0.18), transparent 55%),
        linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.94) 0%, rgba(var(--theme-ink-rgb), 0.98) 100%);
}

.rank-podium-stage.rank-podium-stage--guilds {
    grid-template-columns: 1fr 1.22fr 1fr;
    align-items: end;
    gap: 0.75rem;
    padding: 1.15rem 1rem 1.2rem;
}

.rank-podium-card.is-guild {
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 0 !important;
    padding: 1rem 0.7rem 0.9rem;
    background:
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.1), transparent 70%),
        rgba(var(--theme-ink-rgb), 0.55);
}

.rank-podium-card.is-guild.is-rank-1 {
    grid-column: auto !important;
    min-height: 0 !important;
    padding-top: 1.15rem;
    border-color: rgba(var(--theme-gold-rgb), 0.72);
    background:
        radial-gradient(80% 55% at 50% 0%, rgba(var(--theme-gold-rgb), 0.28), transparent 68%),
        linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.12), transparent 70%),
        rgba(var(--theme-ink-rgb), 0.62);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(var(--theme-gold-rgb), 0.12);
    transform: translateY(-10px);
}

.rank-podium-card.is-guild.is-rank-2 {
    grid-column: auto !important;
    min-height: 0 !important;
    padding-top: 1.05rem;
    border-color: rgba(196, 208, 222, 0.62);
    background:
        radial-gradient(80% 55% at 50% 0%, rgba(196, 208, 222, 0.26), transparent 68%),
        linear-gradient(180deg, rgba(196, 208, 222, 0.1), transparent 70%),
        rgba(var(--theme-ink-rgb), 0.58);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(196, 208, 222, 0.12);
    transform: translateY(-5px);
}

.rank-podium-card.is-guild.is-rank-3 {
    grid-column: auto !important;
    min-height: 0 !important;
    padding-top: 1rem;
    border-color: rgba(205, 127, 50, 0.62);
    background:
        radial-gradient(80% 55% at 50% 0%, rgba(205, 127, 50, 0.28), transparent 68%),
        linear-gradient(180deg, rgba(205, 127, 50, 0.1), transparent 70%),
        rgba(var(--theme-ink-rgb), 0.58);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(205, 127, 50, 0.14);
    transform: translateY(-3px);
}

.rank-podium-card.is-guild:hover {
    transform: translateY(-4px);
}

.rank-podium-card.is-guild.is-rank-1:hover {
    transform: translateY(-12px);
}

.rank-podium-card.is-guild.is-rank-2:hover {
    transform: translateY(-7px);
}

.rank-podium-card.is-guild.is-rank-3:hover {
    transform: translateY(-5px);
}

.rank-guild-ornaments {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.6rem;
    margin-bottom: 0.1rem;
}

.rank-guild-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffe2a0;
    font-size: 1.35rem;
    filter: drop-shadow(0 0 10px rgba(var(--theme-gold-rgb), 0.55));
    animation: rank-guild-crown-float 2.4s ease-in-out infinite;
}

.rank-guild-laurels {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eef3f8;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(196, 208, 222, 0.45));
    animation: rank-guild-crown-float 2.7s ease-in-out infinite;
}

.rank-guild-laurels.is-bronze {
    color: #e8b07a;
    font-size: 1.15rem;
    filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.42));
    animation-duration: 2.9s;
}

.rank-guild-sparkles {
    position: absolute;
    inset: -0.35rem -1.6rem auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.rank-guild-sparkles i {
    color: #ffe2a0;
    font-size: 0.55rem;
    opacity: 0.85;
    animation: rank-guild-sparkle 1.8s ease-in-out infinite;
}

.rank-guild-sparkles i:nth-child(2) {
    margin-top: -0.25rem;
    animation-delay: 0.35s;
}

.rank-guild-sparkles i:nth-child(3) {
    animation-delay: 0.7s;
}

.rank-guild-sparkles.is-silver {
    inset: -0.2rem -1.35rem auto;
}

.rank-guild-sparkles.is-silver i {
    color: #e8eef5;
    font-size: 0.5rem;
}

.rank-guild-sparkles.is-bronze {
    inset: -0.2rem -1.25rem auto;
}

.rank-guild-sparkles.is-bronze i {
    color: #e8b07a;
    font-size: 0.48rem;
}

.rank-guild-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.05rem 0 0.15rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.12);
    color: var(--theme-gold-soft);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rank-guild-tag i {
    font-size: 0.58rem;
    color: var(--theme-gold);
}

.rank-podium-card.is-guild.is-rank-1 .rank-guild-tag {
    border-color: rgba(var(--theme-gold-rgb), 0.65);
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.22), rgba(var(--theme-gold-rgb), 0.1));
    color: #ffe2a0;
    box-shadow: 0 0 14px rgba(var(--theme-gold-rgb), 0.18);
}

.rank-podium-card.is-guild.is-rank-2 .rank-guild-tag {
    border-color: rgba(196, 208, 222, 0.65);
    background: linear-gradient(180deg, rgba(196, 208, 222, 0.22), rgba(var(--theme-gold-rgb), 0.08));
    color: #e8eef5;
    box-shadow: 0 0 12px rgba(196, 208, 222, 0.14);
}

.rank-podium-card.is-guild.is-rank-3 .rank-guild-tag {
    border-color: rgba(205, 127, 50, 0.65);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.22), rgba(var(--theme-gold-rgb), 0.08));
    color: #e8b07a;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.16);
}

.rank-guild-crest {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.15rem 0 0.2rem;
}

.rank-guild-crest__wing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--theme-gold-rgb), 0.55);
    font-size: 0.85rem;
    opacity: 0.85;
}

.rank-guild-crest__wing.is-left {
    transform: scaleX(-1) rotate(-12deg);
}

.rank-guild-crest__wing.is-right {
    transform: rotate(-12deg);
}

.rank-podium-card.is-guild.is-rank-1 .rank-guild-crest__wing {
    color: rgba(var(--theme-gold-rgb), 0.85);
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(var(--theme-gold-rgb), 0.35));
}

.rank-podium-card.is-guild.is-rank-2 .rank-guild-crest__wing {
    color: rgba(196, 208, 222, 0.95);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 8px rgba(196, 208, 222, 0.3));
}

.rank-podium-card.is-guild.is-rank-3 .rank-guild-crest__wing {
    color: rgba(232, 176, 122, 0.95);
    font-size: 0.92rem;
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.3));
}

@keyframes rank-guild-crown-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes rank-guild-sparkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* —— Top Chars / character podium motion —— */
.rank-podium-card.is-char {
    overflow: visible;
}

.rank-char-ornaments {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    margin-bottom: 0.15rem;
}

.rank-char-crown {
    display: inline-flex;
    color: #ffe2a0;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(var(--theme-gold-rgb), 0.55));
    animation: rank-guild-crown-float 2.4s ease-in-out infinite;
}

.rank-char-laurels {
    display: inline-flex;
    color: #eef3f8;
    font-size: 1.15rem;
    filter: drop-shadow(0 0 8px rgba(196, 208, 222, 0.4));
    animation: rank-guild-crown-float 2.7s ease-in-out infinite;
}

.rank-char-laurels.is-bronze {
    color: #e8b07a;
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.4));
    animation-duration: 2.9s;
}

.rank-char-sparkles {
    position: absolute;
    inset: -0.3rem -1.55rem auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.rank-char-sparkles i {
    color: #ffe2a0;
    font-size: 0.52rem;
    animation: rank-guild-sparkle 1.8s ease-in-out infinite;
}

.rank-char-sparkles i:nth-child(2) {
    margin-top: -0.2rem;
    animation-delay: 0.35s;
}

.rank-char-sparkles i:nth-child(3) {
    animation-delay: 0.7s;
}

.rank-char-sparkles.is-silver i {
    color: #e8eef5;
    font-size: 0.48rem;
}

.rank-char-sparkles.is-bronze i {
    color: #e8b07a;
    font-size: 0.46rem;
}

.rank-char-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.12);
    color: var(--theme-gold-soft);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: rank-char-tag-pulse 2.8s ease-in-out infinite;
}

.rank-char-tag i {
    font-size: 0.55rem;
    color: var(--theme-gold);
}

.rank-podium-card.is-char.is-rank-1 .rank-char-tag {
    border-color: rgba(var(--theme-gold-rgb), 0.65);
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.22), rgba(var(--theme-gold-rgb), 0.1));
    color: #ffe2a0;
    box-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.18);
}

.rank-podium-card.is-char.is-rank-2 .rank-char-tag {
    border-color: rgba(196, 208, 222, 0.55);
    background: rgba(196, 208, 222, 0.12);
    color: #e8eef5;
}

.rank-podium-card.is-char.is-rank-3 .rank-char-tag {
    border-color: rgba(205, 127, 50, 0.55);
    background: rgba(205, 127, 50, 0.14);
    color: #e8b07a;
}

.rank-podium-card.is-char .rank-podium-figure {
    position: relative;
}

.rank-char-aura {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 72%;
    height: 28%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(var(--theme-gold-rgb), 0.35), transparent 70%);
    filter: blur(2px);
    pointer-events: none;
    animation: rank-char-aura-pulse 2.6s ease-in-out infinite;
}

.rank-podium-card.is-char.is-rank-1 .rank-char-aura {
    width: 84%;
    height: 34%;
    background: radial-gradient(ellipse at center, rgba(var(--theme-gold-rgb), 0.45), transparent 72%);
    animation-duration: 2.2s;
}

.rank-podium-card.is-char.is-rank-2 .rank-char-aura {
    background: radial-gradient(ellipse at center, rgba(196, 208, 222, 0.35), transparent 72%);
}

.rank-podium-card.is-char.is-rank-3 .rank-char-aura {
    background: radial-gradient(ellipse at center, rgba(205, 127, 50, 0.38), transparent 72%);
}

.rank-podium-card.is-char .rank-podium-avatar:not(.is-fallback) {
    animation: rank-char-bob 3.2s ease-in-out infinite;
}

.rank-podium-card.is-char.is-rank-1 .rank-podium-avatar:not(.is-fallback) {
    animation-duration: 2.8s;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(var(--theme-gold-rgb), 0.25));
}

.rank-podium-card.is-char.is-rank-2 .rank-podium-avatar:not(.is-fallback) {
    animation-duration: 3.1s;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(196, 208, 222, 0.18));
}

.rank-podium-card.is-char.is-rank-3 .rank-podium-avatar:not(.is-fallback) {
    animation-duration: 3.4s;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(205, 127, 50, 0.2));
}

.rank-podium-card.is-char.is-rank-1 {
    animation: rank-char-card-glow 3s ease-in-out infinite;
}

@keyframes rank-char-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes rank-char-aura-pulse {
    0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(0.92); }
    50% { opacity: 0.95; transform: translateX(-50%) scale(1.08); }
}

@keyframes rank-char-tag-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(var(--theme-gold-rgb), 0); }
    50% { box-shadow: 0 0 12px rgba(var(--theme-gold-rgb), 0.22); }
}

@keyframes rank-char-card-glow {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 0 0 rgba(var(--theme-gold-rgb), 0); }
    50% { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 0 22px rgba(var(--theme-gold-rgb), 0.18); }
}

@media (prefers-reduced-motion: reduce) {
    .rank-char-crown,
    .rank-char-laurels,
    .rank-char-sparkles i,
    .rank-char-tag,
    .rank-char-aura,
    .rank-podium-card.is-char .rank-podium-avatar:not(.is-fallback),
    .rank-podium-card.is-char.is-rank-1 {
        animation: none !important;
    }
}

.rank-guild-crest__ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background:
        radial-gradient(circle at 50% 35%, rgba(var(--theme-gold-rgb), 0.22), transparent 65%),
        rgba(var(--theme-ink-rgb), 0.7);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.rank-podium-card.is-guild.is-rank-1 .rank-guild-crest__ring {
    width: 104px;
    height: 104px;
    border-color: rgba(var(--theme-gold-rgb), 0.7);
    background:
        radial-gradient(circle at 50% 30%, rgba(var(--theme-gold-rgb), 0.32), transparent 62%),
        rgba(var(--theme-ink-rgb), 0.75);
    box-shadow:
        0 0 22px rgba(var(--theme-gold-rgb), 0.18),
        inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.rank-podium-card.is-guild.is-rank-2 .rank-guild-crest__ring {
    width: 94px;
    height: 94px;
    border-color: rgba(196, 208, 222, 0.7);
    background:
        radial-gradient(circle at 50% 30%, rgba(196, 208, 222, 0.3), transparent 62%),
        rgba(var(--theme-ink-rgb), 0.72);
    box-shadow:
        0 0 16px rgba(196, 208, 222, 0.16),
        inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.rank-podium-card.is-guild.is-rank-3 .rank-guild-crest__ring {
    width: 90px;
    height: 90px;
    border-color: rgba(205, 127, 50, 0.7);
    background:
        radial-gradient(circle at 50% 30%, rgba(205, 127, 50, 0.32), transparent 62%),
        rgba(var(--theme-ink-rgb), 0.72);
    box-shadow:
        0 0 16px rgba(205, 127, 50, 0.18),
        inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.rank-guild-crest__core {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.2), rgba(var(--theme-ink-rgb), 0.85));
    color: var(--theme-gold);
}

.rank-podium-card.is-guild.is-rank-1 .rank-guild-crest__core {
    width: 70px;
    height: 70px;
    border-color: rgba(var(--theme-gold-rgb), 0.65);
    background: linear-gradient(180deg, rgba(var(--theme-gold-rgb), 0.28), rgba(var(--theme-ink-rgb), 0.9));
    color: #ffe2a0;
}

.rank-podium-card.is-guild.is-rank-2 .rank-guild-crest__core {
    width: 64px;
    height: 64px;
    border-color: rgba(196, 208, 222, 0.65);
    background: linear-gradient(180deg, rgba(196, 208, 222, 0.28), rgba(var(--theme-ink-rgb), 0.9));
    color: #eef3f8;
}

.rank-podium-card.is-guild.is-rank-3 .rank-guild-crest__core {
    width: 62px;
    height: 62px;
    border-color: rgba(205, 127, 50, 0.65);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.28), rgba(var(--theme-ink-rgb), 0.9));
    color: #e8b07a;
}

.rank-guild-crest__core i {
    font-size: 1.35rem;
    opacity: 0.9;
}

.rank-podium-card.is-guild.is-rank-1 .rank-guild-crest__core i {
    font-size: 1.55rem;
}

.rank-guild-crest__core em {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: rgba(var(--theme-ink-rgb), 0.92);
    color: var(--theme-gold-bright);
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.rank-podium-card.is-guild .rank-podium-name {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.rank-podium-card.is-guild.is-rank-1 .rank-podium-name {
    font-size: 1.18rem;
    text-shadow: 0 0 14px rgba(var(--theme-gold-rgb), 0.25);
}

.rank-podium-card.is-guild .rank-podium-score {
    min-width: 108px;
    border-radius: 10px;
}

.rank-podium-card.is-guild.is-rank-1 .rank-podium-score {
    min-width: 124px;
    box-shadow: 0 0 16px rgba(var(--theme-gold-rgb), 0.22);
}

.rank-podium-card.is-guild.is-rank-2 .rank-podium-name {
    font-size: 1.06rem;
    text-shadow: 0 0 10px rgba(196, 208, 222, 0.2);
}

.rank-podium-card.is-guild.is-rank-3 .rank-podium-name {
    font-size: 1.02rem;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.2);
}

.rank-podium-card.is-guild.is-rank-2 .rank-podium-score {
    min-width: 114px;
    border-color: #c4d0de;
    background: linear-gradient(180deg, #f0f4f8, #b7c0cd);
    box-shadow: 0 0 12px rgba(196, 208, 222, 0.18);
}

.rank-podium-card.is-guild.is-rank-3 .rank-podium-score {
    min-width: 110px;
    border-color: #cd7f32;
    background: linear-gradient(180deg, #e8b07a, #b56a32);
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.2);
}

@media (max-width: 767.98px) {
    .rank-podium-stage.rank-podium-stage--guilds {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .rank-podium-card.is-guild.is-rank-1,
    .rank-podium-card.is-guild.is-rank-1:hover,
    .rank-podium-card.is-guild.is-rank-2,
    .rank-podium-card.is-guild.is-rank-2:hover,
    .rank-podium-card.is-guild.is-rank-3,
    .rank-podium-card.is-guild.is-rank-3:hover {
        transform: none;
    }

    .rank-podium-card.is-guild.is-rank-1 {
        order: -1;
    }
}

.ranking-table-panel {
    border-radius: 14px;
    border: 1px solid var(--theme-border);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.9) 0%, rgba(var(--theme-ink-rgb), 0.96) 100%);
}

.ranking-result {
    padding: 0.95rem;
}

.ranking-result .rank-dt-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin-bottom: 0.9rem;
}

.ranking-result .rank-dt-top .rank-dt-tools,
.ranking-result .rank-dt-top .rank-dt-length {
    float: none;
}

.ranking-result .rank-dt-top .dataTables_filter {
    margin: 0;
    float: none;
}

.ranking-result .rank-dt-top .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.15rem 0.15rem 0.15rem 0.85rem;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.55);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.95) 0%, rgba(var(--theme-ink-rgb), 0.98) 100%);
    color: var(--theme-gold-soft) !important;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-gold-rgb), 0.08);
}

.ranking-result .rank-dt-top .dataTables_filter input {
    min-width: 210px;
    width: 240px;
    max-width: 100%;
    height: 34px;
    margin: 0 !important;
    padding: 0.35rem 1rem 0.35rem 0.7rem !important;
    border: 0 !important;
    border-left: 1px solid rgba(var(--theme-gold-soft-rgb), 0.28) !important;
    border-radius: 0 999px 999px 0 !important;
    background: transparent !important;
    color: var(--theme-text) !important;
    font-size: 0.92rem;
    outline: none !important;
    box-shadow: none !important;
}

.ranking-result .rank-dt-top .dataTables_filter input::placeholder {
    color: var(--theme-text-muted);
    opacity: 0.9;
}

.ranking-result .rank-dt-top .dataTables_filter label:focus-within {
    border-color: var(--theme-gold);
    box-shadow: 0 0 0 2px rgba(var(--theme-gold-rgb), 0.22);
}

.ranking-result .rank-dt-top .dataTables_length {
    margin: 0;
    float: none;
}

.ranking-result .rank-dt-top .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--theme-gold-soft) !important;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ranking-result .rank-dt-top .dataTables_length select {
    appearance: none;
    -webkit-appearance: none;
    height: 34px;
    min-width: 58px;
    margin: 0 0.1rem;
    padding: 0.2rem 1.55rem 0.2rem 0.7rem;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.55);
    border-radius: 10px;
    background-color: rgba(var(--theme-ink-rgb), 0.95);
    background-image: linear-gradient(45deg, transparent 50%, var(--theme-gold-soft) 50%),
        linear-gradient(135deg, var(--theme-gold-soft) 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: var(--theme-gold-soft);
    font-size: 0.92rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-gold-rgb), 0.08);
}

.ranking-result .rank-dt-top .dataTables_length select:hover,
.ranking-result .rank-dt-top .dataTables_length select:focus {
    border-color: var(--theme-gold);
    color: var(--theme-text);
    box-shadow: 0 0 0 2px rgba(var(--theme-gold-rgb), 0.22);
}

.ranking-result .rank-dt-top .dataTables_length select option {
    background: var(--theme-dark-mid);
    color: var(--theme-text);
}

@media (max-width: 767.98px) {
    .ranking-result .rank-dt-top {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-result .rank-dt-top .dataTables_filter label {
        width: 100%;
    }

    .ranking-result .rank-dt-top .dataTables_filter input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .ranking-result .rank-dt-top .dataTables_length {
        align-self: flex-end;
    }
}

.ranking-result .rank-dt-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.ranking-result .rank-dt-bottom .dataTables_info {
    color: var(--theme-gold-soft) !important;
    padding: 0 !important;
}

.ranking-result .rank-dt-bottom .dataTables_paginate {
    float: none !important;
    padding: 0 !important;
}

.ranking-result .rank-dt-bottom .dataTables_paginate .pagination {
    margin: 0;
    gap: 0.28rem;
}

.ranking-result .rank-dt-bottom .paginate_button,
.ranking-result .rank-dt-bottom .page-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ranking-result .rank-dt-bottom .paginate_button .page-link,
.ranking-result .rank-dt-bottom .page-item .page-link,
.ranking-result .rank-dt-bottom .paginate_button:not(.page-item) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0 !important;
    padding: 0 0.55rem !important;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4) !important;
    border-radius: 8px !important;
    background: rgba(var(--theme-mid-rgb), 0.92) !important;
    color: var(--theme-gold-soft) !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.ranking-result .rank-dt-bottom .paginate_button .page-link:hover,
.ranking-result .rank-dt-bottom .page-item .page-link:hover,
.ranking-result .rank-dt-bottom .paginate_button:not(.page-item):hover {
    background: rgba(var(--theme-gold-rgb), 0.28) !important;
    border-color: var(--theme-gold) !important;
    color: var(--theme-text) !important;
}

.ranking-result .rank-dt-bottom .paginate_button.current .page-link,
.ranking-result .rank-dt-bottom .page-item.active .page-link,
.ranking-result .rank-dt-bottom .paginate_button.current:not(.page-item) {
    background: var(--theme-gold) !important;
    border-color: var(--theme-gold) !important;
    color: var(--theme-ink) !important;
    font-weight: 700;
}

.ranking-result .rank-dt-bottom .paginate_button.disabled .page-link,
.ranking-result .rank-dt-bottom .page-item.disabled .page-link,
.ranking-result .rank-dt-bottom .paginate_button.disabled:not(.page-item) {
    background: rgba(var(--theme-mid-rgb), 0.55) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.2) !important;
    color: rgba(var(--theme-gold-soft-rgb), 0.45) !important;
    cursor: default !important;
    opacity: 1;
}

.ranking-result .rank-char {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    text-align: start;
    vertical-align: middle;
    color: var(--theme-text);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ranking-result .rank-char a,
.ranking-result td .rank-char {
    color: var(--theme-gold-soft) !important;
    text-decoration: none;
}

.ranking-result .rank-char a:hover {
    color: var(--theme-text) !important;
}

.ranking-result .rank-char-icon {
    display: block;
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.65);
    background: linear-gradient(180deg, var(--theme-surface) 0%, var(--theme-dark-mid) 100%);
    box-shadow: 0 0 0 2px rgba(var(--theme-gold-rgb), 0.12);
    flex-shrink: 0;
}

.ranking-result table.dataTable tbody td:has(.rank-char) {
    text-align: start;
}

.ranking-result .ranking-datatable {
    background: var(--theme-dark-mid) !important;
    color: var(--theme-text) !important;
}

.ranking-result .ranking-datatable thead th {
    background: linear-gradient(180deg, var(--theme-burgundy-deep) 0%, var(--theme-surface) 100%) !important;
    color: var(--theme-text) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.35) !important;
}

.ranking-result .ranking-datatable tbody td,
.ranking-result .ranking-datatable tbody th {
    color: var(--theme-text) !important;
    border-color: rgba(var(--theme-gold-rgb), 0.22) !important;
    background-color: transparent !important;
}

.ranking-result .ranking-datatable a {
    color: var(--theme-gold-soft) !important;
}

.ranking-result .ranking-datatable a:hover {
    color: var(--theme-gold-pale) !important;
}

.rank-hall .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 2.4rem;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.rank-hall .rank-badge i {
    font-size: 0.72rem;
}

.rank-hall .rank-badge.rank-1 {
    color: var(--theme-ink);
    background: linear-gradient(180deg, var(--theme-gold-pale), var(--theme-gold));
    box-shadow: 0 0 10px rgba(var(--theme-gold-rgb), 0.28);
}

.rank-hall .rank-badge.rank-2 {
    color: #1c2430;
    background: linear-gradient(180deg, #f0f4f8, #b7c0cd);
    box-shadow: 0 0 8px rgba(180, 190, 205, 0.22);
}

.rank-hall .rank-badge.rank-3 {
    color: #2a1608;
    background: linear-gradient(180deg, #e8b07a, #b56a32);
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.22);
}

.ranking-result .ranking-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    padding: 0.16rem 0.38rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.ranking-result .ranking-medal-1 {
    color: var(--theme-ink);
    background: linear-gradient(180deg, var(--theme-gold-pale), var(--theme-gold));
    box-shadow: 0 0 10px rgba(var(--theme-gold-rgb), 0.28);
}

.ranking-result .ranking-medal-2 {
    color: #1c2430;
    background: linear-gradient(180deg, #f0f4f8, #b7c0cd);
    box-shadow: 0 0 8px rgba(180, 190, 205, 0.22);
}

.ranking-result .ranking-medal-3 {
    color: #2a1608;
    background: linear-gradient(180deg, #e8b07a, #b56a32);
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.22);
}

.ranking-result .ranking-datatable.table-striped tbody tr,
.ranking-result .ranking-datatable.table-striped tbody tr:nth-of-type(odd),
.ranking-result .ranking-datatable.table-striped tbody tr:nth-of-type(even),
.ranking-result .ranking-datatable tbody tr {
    background-color: var(--theme-dark-mid) !important;
    color: var(--theme-text) !important;
}

.ranking-result .ranking-datatable.table-striped tbody tr:nth-of-type(even) {
    background-color: var(--theme-ink) !important;
}

.ranking-result .ranking-datatable tbody tr:hover {
    background-color: rgba(var(--theme-gold-rgb), 0.22) !important;
    color: var(--theme-text) !important;
}

.ranking-result .ranking-datatable tbody tr:nth-child(1) {
    background: linear-gradient(90deg, var(--theme-burgundy-deep) 0%, var(--theme-dark-elevated) 55%, var(--theme-dark-mid) 100%) !important;
}

.ranking-result .ranking-datatable tbody tr:nth-child(2) {
    background: linear-gradient(90deg, #2a3340 0%, var(--theme-dark-elevated) 55%, var(--theme-dark-mid) 100%) !important;
}

.ranking-result .ranking-datatable tbody tr:nth-child(3) {
    background: linear-gradient(90deg, #3a2418 0%, var(--theme-dark-elevated) 55%, var(--theme-dark-mid) 100%) !important;
}

.ranking-result .ranking-datatable tbody tr:nth-child(1) td,
.ranking-result .ranking-datatable tbody tr:nth-child(1) th,
.ranking-result .ranking-datatable tbody tr:nth-child(2) td,
.ranking-result .ranking-datatable tbody tr:nth-child(2) th,
.ranking-result .ranking-datatable tbody tr:nth-child(3) td,
.ranking-result .ranking-datatable tbody tr:nth-child(3) th {
    color: var(--theme-text) !important;
    font-weight: 700;
}

.ranking-result .ranking-datatable tbody tr:nth-child(1) a,
.ranking-result .ranking-datatable tbody tr:nth-child(2) a,
.ranking-result .ranking-datatable tbody tr:nth-child(3) a {
    color: var(--theme-gold-pale) !important;
    font-weight: 700;
}

@media screen and (max-width: 640px) {
    .rank-hero {
        padding: 1.05rem 1rem 0.95rem;
    }

    .rank-tabs {
        padding: 0.55rem;
    }

    .rank-tab {
        flex: 1 1 calc(50% - 0.45rem);
    }

    .rank-podium-stage {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .rank-podium-card,
    .rank-podium-card.is-rank-1,
    .rank-podium-card.is-rank-2,
    .rank-podium-card.is-rank-3 {
        grid-column: auto;
        min-height: 0;
        padding: 0.75rem 0.7rem;
    }

    .rank-podium-card.is-rank-1 { order: 1; }
    .rank-podium-card.is-rank-2 { order: 2; }
    .rank-podium-card.is-rank-3 { order: 3; }
}

/* ===== Player information hall ===== */
.player-hall {
    padding: 0.85rem 0.95rem 1.15rem;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--theme-panel-rgb), 0.88) 0%, rgba(var(--theme-ink-rgb), 0.96) 100%);
}

.player-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.22);
}

.player-hero-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.35);
    border-radius: 12px;
    background: rgba(var(--theme-ink-rgb), 0.72);
    text-align: center;
}

.player-hero-score strong {
    color: var(--theme-text);
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 800;
}

.player-hero-score span {
    color: var(--theme-gold-soft);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.player-hero-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-hero-portrait {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.55);
    background: linear-gradient(180deg, var(--theme-surface) 0%, var(--theme-dark-mid) 100%);
    box-shadow: 0 0 0 3px rgba(var(--theme-gold-rgb), 0.12);
    margin-bottom: 0.45rem;
}

.player-hero-meta {
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.player-skills {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.18);
    border-radius: 12px;
    background: rgba(var(--theme-ink-rgb), 0.45);
    text-align: center;
}

.player-skills .player-panel-head {
    margin-bottom: 0.55rem;
    justify-content: center;
}

.player-skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.player-skills-list li {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.35);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.player-skills-list img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-skills-empty {
    margin: 0;
    color: var(--theme-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.player-hero-name {
    margin: 0.15rem 0 0.2rem;
    color: var(--theme-text);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
}

.player-hero-status {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.player-hero-status.is-online,
.player-facts .is-online {
    color: #7dffb0;
}

.player-hero-status.is-offline,
.player-facts .is-offline {
    color: var(--theme-text-muted);
}

.player-grid {
    display: grid;
    grid-template-columns: 0.9fr minmax(300px, 1.4fr) 0.9fr;
    gap: 0.85rem;
    align-items: start;
}

.player-panel {
    border: 1px solid rgba(var(--theme-gold-rgb), 0.25);
    border-radius: 12px;
    background: rgba(var(--theme-mid-rgb), 0.72);
    padding: 0.75rem 0.85rem 0.9rem;
    min-width: 0;
}

.player-panel-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.player-panel-head--sub {
    margin-top: 0.9rem;
}

.player-panel-head p {
    margin: 0;
    color: var(--theme-gold-soft);
    font-weight: 700;
    font-size: 0.95rem;
}

.player-facts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.player-facts li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.14);
}

.player-facts li:last-child {
    border-bottom: 0;
}

.player-facts span {
    color: var(--theme-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    flex-shrink: 0;
}

.player-facts strong {
    color: var(--theme-text);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: end;
}

.player-facts a {
    color: var(--theme-gold-soft);
}

.player-facts a:hover {
    color: var(--theme-text);
}

.player-note {
    margin: 0.65rem 0 0;
    color: var(--theme-text-muted);
    font-size: 0.75rem;
}

.player-equip {
    min-width: 0;
}

.player-equip .eq-tabs {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.player-equip .eq-tab {
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.4);
    border-radius: 999px;
    background: rgba(var(--theme-ink-rgb), 0.85);
    color: var(--theme-gold-soft);
    padding: 0.3rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.player-equip .eq-tab.is-active,
.player-equip .eq-tab:hover {
    background: rgba(var(--theme-gold-rgb), 0.28);
    border-color: var(--theme-gold);
    color: var(--theme-text);
}

.player-equip .eq-stage {
    position: relative;
    width: 280px;
    height: 340px;
    margin: 0 auto;
    display: none;
}

.player-equip .eq-stage.is-active {
    display: block;
}

.player-equip .eq-char {
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    transform: translateX(-50%);
    width: 140px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.player-equip .eq-char img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.player-equip .eq-grid {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
}

.player-equip .eq-grid--avatar {
    justify-content: flex-start;
    gap: 28px;
    padding-top: 28px;
}

.player-equip .eq-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
}

.player-equip .eq-row--job {
    justify-content: flex-end;
}

.player-equip .eq-slot {
    width: 42px;
    height: 42px;
    position: relative;
}

.player-equip .eq-slot.is-spacer {
    visibility: hidden;
    pointer-events: none;
}

.player-equip .eq-slot-inner {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.45);
    border-radius: 6px;
    background-color: rgba(var(--theme-ink-rgb), 0.75);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-gold-rgb), 0.08);
    position: relative;
    cursor: default;
}

.player-equip .eq-slot.has-item .eq-slot-inner {
    cursor: pointer;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.75);
}

.player-equip .eq-icon {
    position: absolute;
    inset: 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.player-equip .eq-slot.has-blues .eq-slot-inner {
    border-color: rgba(80, 206, 205, 0.85);
    box-shadow:
        inset 0 0 0 1px rgba(80, 206, 205, 0.2),
        0 0 10px rgba(80, 206, 205, 0.28);
}

/* --- SOX / RARE EFFECTS: Star (Yellow), Moon (Green), Sun (Red) --- */

.player-equip .eq-plus {
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 2;
    display: block;
    width: 32px;
    height: 32px;
    pointer-events: none;
    border-radius: 0;
    background: url("/image/sro/equipment/itemplus.png") 0 0 no-repeat;
    background-size: 1024px 32px;
    box-shadow: none;
    -webkit-animation: eq-sox-play 1.8s steps(32) infinite;
    animation: eq-sox-play 1.8s steps(32) infinite;
}

@-webkit-keyframes eq-sox-play {
    100% { background-position: -1024px 0; }
}

@keyframes eq-sox-play {
    100% { background-position: -1024px 0; }
}

/* -------------------------------------------------------------
   STAR (SOS) - Yellow Border & Yellow Glow / Blur
   ------------------------------------------------------------- */
.player-equip .eq-slot.has-sox-star .eq-slot-inner,
.player-equip .eq-slot.has-blues.has-sox-star .eq-slot-inner,
.player-equip .eq-slot-inner.is-sox-star {
    border-color: #ffd700 !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 0, 0.45),
        0 0 16px rgba(255, 215, 0, 0.85),
        0 0 28px rgba(255, 200, 0, 0.5) !important;
    animation: eq-sox-star-glow 2s ease-in-out infinite alternate !important;
}

@keyframes eq-sox-star-glow {
    0% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 215, 0, 0.35),
            0 0 10px rgba(255, 215, 0, 0.65),
            0 0 20px rgba(255, 200, 0, 0.35);
    }
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 215, 0, 0.7),
            0 0 22px rgba(255, 215, 0, 1),
            0 0 35px rgba(255, 200, 0, 0.65);
    }
}

.player-equip .eq-plus.is-star {
    filter: sepia(100%) saturate(700%) hue-rotate(5deg) brightness(1.2) drop-shadow(0 0 6px #ffd700) !important;
}

/* -------------------------------------------------------------
   MOON (SOM) - Green Border & Green Glow / Blur
   ------------------------------------------------------------- */
.player-equip .eq-slot.has-sox-moon .eq-slot-inner,
.player-equip .eq-slot.has-blues.has-sox-moon .eq-slot-inner,
.player-equip .eq-slot-inner.is-sox-moon {
    border-color: #00ff7f !important;
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 127, 0.45),
        0 0 16px rgba(0, 255, 127, 0.9),
        0 0 28px rgba(0, 255, 127, 0.5) !important;
    animation: eq-sox-moon-glow 2s ease-in-out infinite alternate !important;
}

@keyframes eq-sox-moon-glow {
    0% {
        box-shadow:
            inset 0 0 0 1px rgba(0, 255, 127, 0.35),
            0 0 10px rgba(0, 255, 127, 0.65),
            0 0 20px rgba(0, 255, 127, 0.35);
    }
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(0, 255, 127, 0.7),
            0 0 22px rgba(0, 255, 127, 1),
            0 0 35px rgba(0, 255, 127, 0.65);
    }
}

.player-equip .eq-plus.is-moon {
    filter: sepia(100%) saturate(900%) hue-rotate(85deg) brightness(1.3) drop-shadow(0 0 6px #00ff7f) !important;
}

/* -------------------------------------------------------------
   SUN (SOSUN) - Red Border & Red Glow / Blur
   ------------------------------------------------------------- */
.player-equip .eq-slot.has-sox-sun .eq-slot-inner,
.player-equip .eq-slot.has-blues.has-sox-sun .eq-slot-inner,
.player-equip .eq-slot-inner.is-sox-sun {
    border-color: #ff2a2a !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 42, 42, 0.5),
        0 0 16px rgba(255, 42, 42, 0.9),
        0 0 30px rgba(255, 42, 42, 0.55) !important;
    animation: eq-sox-sun-glow 2s ease-in-out infinite alternate !important;
}

@keyframes eq-sox-sun-glow {
    0% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 42, 42, 0.4),
            0 0 10px rgba(255, 30, 30, 0.7),
            0 0 20px rgba(255, 30, 30, 0.4);
    }
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 42, 42, 0.8),
            0 0 24px rgba(255, 42, 42, 1),
            0 0 38px rgba(255, 50, 50, 0.7);
    }
}

.player-equip .eq-plus.is-sun {
    filter: sepia(100%) saturate(1200%) hue-rotate(315deg) brightness(1.35) drop-shadow(0 0 7px #ff2a2a) !important;
}

/* General Fallback (Only if neither moon nor sun) */
.player-equip .eq-slot.has-sox:not(.has-sox-moon):not(.has-sox-sun) .eq-slot-inner,
.player-equip .eq-slot-inner.is-sox:not(.is-sox-moon):not(.is-sox-sun) {
    border-color: #ffd700 !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 0, 0.4),
        0 0 16px rgba(255, 215, 0, 0.8) !important;
}

.player-equip .eq-opt {
    position: absolute;
    right: 2px;
    bottom: 1px;
    z-index: 3;
    pointer-events: none;
    color: #f2e43d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

@-webkit-keyframes eq-sox-play {
    100% { background-position: -1024px 0; }
}

@keyframes eq-sox-play {
    100% { background-position: -1024px 0; }
}

.player-equip .eq-tip {
    display: none !important;
}

.player-feed {
    list-style: none;
    margin: 0;
    padding: 0.1rem 0.4rem 0.1rem 0;
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-gold-rgb), 0.65) rgba(0, 0, 0, 0.25);
}

.player-feed::-webkit-scrollbar {
    width: 6px;
}

.player-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
}

.player-feed::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-gold-soft), var(--theme-gold));
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.player-feed::-webkit-scrollbar-thumb:hover {
    background: var(--theme-gold-pale);
    background-clip: padding-box;
}

.player-feed li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.2rem;
    border-bottom: 1px solid rgba(var(--theme-gold-rgb), 0.12);
}

.player-feed li span {
    color: var(--theme-text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-feed li small {
    color: var(--theme-text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.player-feed li.is-empty {
    color: var(--theme-text-muted);
    border-bottom: 0;
    justify-content: center;
}

@media (max-width: 1199.98px) {
    .player-grid {
        grid-template-columns: 1fr 1fr;
    }

    .player-panel--side {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .player-hero {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .player-hero-score {
        width: 100%;
        max-width: 220px;
    }

    .player-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Rules page —— */
.main-content.rules-page .rules-page__hero {
    margin-bottom: 1rem;
}

.main-content.rules-page .rules-panel.card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42) !important;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(var(--theme-gold-rgb), 0.14) 0%, transparent 55%),
        var(--theme-panel-gradient) !important;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(var(--theme-gold-rgb), 0.12);
}

.main-content.rules-page .rules-panel.card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--theme-gold-rgb), 0.55),
        rgba(var(--theme-gold-soft-rgb), 0.95),
        rgba(var(--theme-gold-rgb), 0.55),
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

.main-content.rules-page .rules-panel__head {
    position: relative;
    z-index: 2;
    gap: 0.65rem !important;
}

.main-content.rules-page .rules-panel__head .theme-ico {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.45);
    background: linear-gradient(160deg, rgba(var(--theme-gold-rgb), 0.28), rgba(var(--theme-mid-rgb), 0.8));
    color: var(--theme-gold-soft);
    font-size: 0.78rem;
}

.main-content.rules-page .rules-panel__count {
    margin-inline-start: auto;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.12);
    color: var(--theme-gold-bright);
    font-size: 0.75rem;
    font-weight: 800;
}

.main-content.rules-page .rules-panel__body {
    position: relative;
    z-index: 2;
    padding: 1rem 1rem 1.25rem !important;
}

.rules-page .rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    counter-reset: none;
}

.rules-page .rules-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.24);
    background:
        linear-gradient(135deg, rgba(var(--theme-gold-rgb), 0.08) 0%, transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
        rgba(var(--theme-ink-rgb), 0.42);
    box-shadow: inset 0 1px 0 rgba(var(--theme-gold-pale-rgb), 0.05);
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.rules-page .rules-item:hover {
    border-color: rgba(var(--theme-gold-rgb), 0.48);
    transform: translateY(-1px);
    background:
        linear-gradient(135deg, rgba(var(--theme-gold-rgb), 0.14) 0%, transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
        rgba(var(--theme-ink-rgb), 0.5);
}

.rules-page .rules-item__index {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.5);
    background: linear-gradient(160deg, rgba(var(--theme-gold-rgb), 0.34), rgba(var(--theme-mid-rgb), 0.88));
    color: var(--theme-gold-bright);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.rules-page .rules-item__title {
    margin: 0.15rem 0 0.5rem;
    color: var(--theme-gold-bright);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.rules-page .rules-item__bullets {
    margin: 0;
    padding-inline-start: 1.15rem;
    color: var(--theme-text-soft);
}

.rules-page .rules-item__bullets li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.rules-page .rules-item__bullets li:last-child {
    margin-bottom: 0;
}

.rules-page .rules-item__bullets strong {
    color: var(--theme-text);
    font-weight: 700;
}

.rules-page .rules-footer {
    margin: 1.15rem 0 0;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.2);
    background: rgba(var(--theme-gold-rgb), 0.08);
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.55;
}

.rules-page .rules-empty {
    margin: 0;
    padding: 1.75rem 0.5rem;
    text-align: center;
    color: var(--theme-text-muted);
}

@media (max-width: 575.98px) {
    .rules-page .rules-item {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.85rem 0.85rem;
    }

    .rules-page .rules-item__index {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.78rem;
    }
}

/* —— Notifications page —— */
.main-content.notif-page > .card.notif-page__panel.hsss {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.42);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(var(--theme-gold-rgb), 0.16) 0%, transparent 55%),
        linear-gradient(180deg, rgba(var(--theme-mid-rgb), 0.98) 0%, rgba(var(--theme-ink-rgb), 0.99) 100%);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(var(--theme-gold-rgb), 0.12);
}

.main-content.notif-page > .card.notif-page__panel.hsss::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--theme-gold-rgb), 0.55), rgba(var(--theme-gold-soft-rgb), 0.95), rgba(var(--theme-gold-rgb), 0.55), transparent);
    pointer-events: none;
    z-index: 1;
}

.main-content.notif-page .notif-page__head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 1.35rem 1rem 0.85rem;
    text-align: center;
}

.main-content.notif-page .notif-page__head::after,
.main-content.notif-page .notif-page__head::before {
    content: none !important;
    display: none !important;
}

.main-content.notif-page .notif-page__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-soft);
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(var(--theme-gold-rgb), 0.18);
}

.main-content.notif-page .notif-page__title {
    margin: 0;
    font-family: "Cinzel", "Tajawal", serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-gold-soft) !important;
    background: none;
    -webkit-text-fill-color: var(--theme-gold-soft);
    text-shadow: 0 0 22px rgba(var(--theme-gold-rgb), 0.35);
}

.main-content.notif-page .notif-page__mark-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.12);
    font-family: "Oxanium", "Tajawal", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--theme-gold-soft);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.main-content.notif-page .notif-page__mark-all:hover {
    color: #fff;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.7);
    background: rgba(var(--theme-gold-rgb), 0.22);
    text-decoration: none;
}

.main-content.notif-page .notif-page__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem 1.35rem;
    background: transparent;
}

.main-content.notif-page .notif-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.3);
    background: linear-gradient(165deg, rgba(var(--theme-panel-rgb), 0.92) 0%, rgba(var(--theme-ink-rgb), 0.96) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.main-content.notif-page .notif-card:hover {
    border-color: rgba(var(--theme-gold-soft-rgb), 0.55);
    transform: translateY(-1px);
}

.main-content.notif-page .notif-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-soft);
    font-size: 1rem;
}

.main-content.notif-page .notif-card__content {
    min-width: 0;
}

.main-content.notif-page .notif-card__text {
    margin: 0 0 0.35rem;
    font-family: "Source Sans 3", "Tajawal", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--theme-text);
    word-break: break-word;
}

.main-content.notif-page .notif-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Orbitron", "Oxanium", monospace;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--theme-text-muted);
}

.main-content.notif-page .notif-card__time i {
    color: var(--theme-gold-soft);
}

.main-content.notif-page .notif-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.main-content.notif-page .notif-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-family: "Oxanium", "Tajawal", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.main-content.notif-page .notif-card__btn--link {
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
    background: rgba(var(--theme-gold-rgb), 0.1);
    color: var(--theme-gold-soft);
}

.main-content.notif-page .notif-card__btn--link:hover {
    color: #fff;
    border-color: rgba(var(--theme-gold-soft-rgb), 0.7);
    background: rgba(var(--theme-gold-rgb), 0.22);
    text-decoration: none;
}

.main-content.notif-page .notif-card__btn--read {
    border: 1px solid rgba(var(--theme-gold-soft-rgb), 0.65);
    background: linear-gradient(180deg, var(--theme-gold-pale) 0%, var(--theme-gold) 100%);
    color: var(--theme-ink);
}

.main-content.notif-page .notif-card__btn--read:hover {
    color: var(--theme-ink);
    border-color: var(--theme-text);
    background: linear-gradient(180deg, var(--theme-text) 0%, var(--theme-gold-soft) 100%);
    text-decoration: none;
}

.main-content.notif-page .notif-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 2.75rem 1.25rem;
    border: 1px dashed rgba(var(--theme-gold-rgb), 0.45);
    border-radius: 14px;
    background: rgba(var(--theme-ink-rgb), 0.35);
    text-align: center;
}

.main-content.notif-page .notif-page__empty-icon {
    font-size: 2.2rem;
    color: rgba(var(--theme-gold-rgb), 0.55);
}

.main-content.notif-page .notif-page__empty-text {
    margin: 0;
    color: var(--theme-text-soft);
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .main-content.notif-page .notif-card {
        grid-template-columns: auto 1fr;
    }

    .main-content.notif-page .notif-card__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .main-content.notif-page .notif-card__btn {
        flex: 1 1 auto;
    }
}

/* Classic SRO item tooltip (Old Road style) */
body .ui-tooltip,
#player-item-tooltip {
    max-width: 280px !important;
    min-width: 220px !important;
    width: auto !important;
    padding: 10px 12px !important;
    background-color: #12131c !important;
    background-image: url("/image/sro/equipment/com_bg_tile_tl.png") !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    border: 1px solid #7a7a88 !important;
    border-radius: 0 !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55) !important;
    z-index: 10050 !important;
    pointer-events: none;
    font-family: Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #fff !important;
    text-shadow: 1px 1px #000;
    word-break: normal !important;
    overflow-wrap: break-word;
}

body .ui-tooltip-content,
#player-item-tooltip {
    font-family: Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #fff !important;
    text-shadow: 1px 1px #000;
    word-break: normal !important;
    overflow-wrap: break-word;
}

body .ui-tooltip-content span,
#player-item-tooltip span {
    word-break: normal !important;
    line-break: auto !important;
}

body .ui-tooltip-content img,
#player-item-tooltip img {
    max-width: 18px;
    max-height: 18px;
    vertical-align: middle;
    margin-inline-end: 4px;
}

/* -- Latest Globals (Old Road / Tosamu style) -- */
.site-latest-globals-card .site-latest-globals-head {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
}

.site-latest-globals-card .site-latest-globals-head .theme-ico {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(var(--theme-gold-rgb), 0.25), rgba(var(--theme-gold-rgb), 0.05));
    border: 1px solid rgba(var(--theme-gold-rgb), 0.35);
    color: var(--theme-gold-bright);
    font-size: 0.78rem;
}

.site-latest-globals-card .site-latest-globals-head p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--theme-gold-soft);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.site-latest-globals-card .site-latest-globals-body {
    padding: 0.45rem 0.4rem 0.55rem 0.55rem !important;
    overflow: hidden;
}

.site-latest-globals-card .server-latest-globals {
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-gold-rgb), 0.65) rgba(0, 0, 0, 0.25);
}

.site-latest-globals-card .server-latest-globals::-webkit-scrollbar {
    width: 6px;
}

.site-latest-globals-card .server-latest-globals::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
}

.site-latest-globals-card .server-latest-globals::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-gold-soft), var(--theme-gold));
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.site-latest-globals-card .server-latest-globals::-webkit-scrollbar-thumb:hover {
    background: var(--theme-gold-pale);
    background-clip: padding-box;
}

.site-latest-globals-card .global-msg-item {
    position: relative;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 6px;
    background: rgba(18, 14, 26, 0.65);
    border: 1px solid rgba(var(--theme-gold-rgb), 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-latest-globals-card .global-msg-item:hover {
    background: rgba(28, 20, 42, 0.85);
    border-color: rgba(var(--theme-gold-rgb), 0.35);
}

.site-latest-globals-card .global-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.site-latest-globals-card .global-msg-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.site-latest-globals-card .global-msg-ico {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--theme-gold-rgb), 0.4);
}

.site-latest-globals-card .global-msg-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-latest-globals-card .global-msg-name a {
    color: var(--theme-gold-bright) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-latest-globals-card .global-msg-name a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.site-latest-globals-card .global-msg-time {
    font-size: 0.72rem;
    color: var(--theme-text-muted, #8e889b);
    white-space: nowrap;
    flex-shrink: 0;
}

.site-latest-globals-card .global-msg-body {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #f7d54e;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    overflow-wrap: break-word;
    padding-left: 0.2rem;
}

.site-latest-globals-card .global-msg-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: var(--theme-text-muted);
    font-size: 0.85rem;
}



