/**
 * Default Template Theme CSS
 * Professional dark gaming theme with cyan/blue accents
 * Modern tech aesthetic with 3-column layout
 * Based on test template structure
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
    outline: none;
}

/* === BODY & BACKGROUND === */
html {
    overflow-x: hidden !important;
}

body {
    width: 100% !important;
    background-color: #0a0603 !important;
    color: #d9c48f !important;
    font-family: 'Open Sans', 'Segoe UI', Arial, Tahoma, sans-serif !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: #c9a15c !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(201, 161, 92, 0.3) !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

h1 { font-size: 24px !important; }
h2 { font-size: 22px !important; }
h3 { font-size: 18px !important; }
h4 { font-size: 16px !important; }
h5 { font-size: 14px !important; }
h6 { font-size: 12px !important; }

p {
    margin-bottom: 7px !important;
    line-height: 1.6 !important;
}

/* === LINKS === */
a {
    color: #4a2f15 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #c9a15c !important;
    text-shadow: 0 0 8px rgba(201, 161, 92, 0.5) !important;
}

/* === LAYOUT STRUCTURE === */
.wrapper {
    width: 1400px !important;
    margin: 0 auto !important;
    position: relative !important;
    min-width: 1400px !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flow-root !important;
}

.flex-center {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.clear {
    clear: both !important;
    font-size: 0px !important;
    line-height: 0px !important;
    display: block !important;
}

/* === TOP PANEL - NAVIGATION === */
.top-panel {
    height: auto !important;
    background: transparent !important;
    width: 100% !important;
    position: absolute !important;
    top: 300px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    padding: 10px 0 0 0 !important;
}

/* Elegancki zloty divider PONIZEJ menu — linia z gradientem */
.top-panel::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 22px auto 0 auto !important;
    height: 1px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(138, 106, 42, 0.5) 15%,
        rgba(201, 161, 92, 0.9) 50%,
        rgba(138, 106, 42, 0.5) 85%,
        transparent 100%) !important;
    box-shadow: 0 0 8px rgba(201, 161, 92, 0.3) !important;
}

/* Maly sapphire diament w srodku linii (pod menu) */
.top-panel::before {
    content: "" !important;
    position: absolute !important;
    bottom: -3.5px !important;
    left: 50% !important;
    width: 7px !important;
    height: 7px !important;
    margin-left: -3.5px !important;
    background: linear-gradient(135deg, #a3d5f0, #5dade2) !important;
    transform: rotate(45deg) !important;
    box-shadow: 0 0 8px rgba(93, 173, 226, 0.6), inset 0 0 2px rgba(15, 10, 5, 0.4) !important;
    border: 1px solid rgba(163, 213, 240, 0.8) !important;
    z-index: 2 !important;
}

.top-panel .top-panel-container {
    width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 32px !important;
    justify-content: center !important;
}

.menu li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.menu li a {
    display: block !important;
    text-transform: uppercase !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    width: 145px !important;
    text-align: center !important;
    box-sizing: border-box !important;

    /* Gradient złoto/niebieski/czarny */
    background: linear-gradient(135deg, #1a120a 0%, #0a0603 50%, #1a120a 100%) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;

    /* Tekst sapphire */
    color: #5dade2 !important;
    text-shadow: 0 0 10px rgba(93, 173, 226, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.menu li a:before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent) !important;
    transition: left 0.5s ease !important;
}

.menu li a:hover:before {
    left: 100% !important;
}

.menu li a:hover {
    background: linear-gradient(135deg, #2a1e10 0%, #1f140a 50%, #2a1e10 100%) !important;
    border: 2px solid rgba(138, 106, 42, 0.4) !important;
    color: #a3d5f0 !important;
    text-shadow: 0 0 15px rgba(93, 173, 226, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 6px 25px rgba(138, 106, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.menu li a:active {
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Top accent — soft gold gradient line that grows/brightens on hover (replaces the plain border) */
.menu li a:after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.9), transparent) !important;
    opacity: 0.45 !important;
    transition: width 0.35s ease, opacity 0.35s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
}
.menu li a:hover:after {
    width: 82% !important;
    opacity: 1 !important;
}

/* === HEADER === */
.header {
    /* Wysokosc proporcjonalna do aspektu obrazu (1424:533), nie wiecej niz 340 px.
       auto 100% = tlo zachowuje proporcje (bez zniekszcen i bez kropowania gora/dol),
       boki headera sa transparentne, body (#0a0603) zlewa sie z baza grafiki. */
    /* Tlo w 100% naturalnych wymiarow (1424x533) — uzytkownik dostosuje w obrazie */
    height: 533px !important;
    position: absolute !important;
    top: 0 !important;
    left: calc(50% - 50vw) !important;
    right: auto !important;
    width: 100vw !important;
    background: url(../../images/logobg.png) center top no-repeat !important;
    background-size: auto !important;
    background-color: transparent !important;
    z-index: 5 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 10px !important;
    box-sizing: border-box !important;
}

.site-logo {
    display: block !important;
    max-width: 538px !important;
    max-height: 280px !important;
    height: auto !important;
    width: auto !important;
    filter: drop-shadow(0 0 20px rgba(201, 161, 92, 0.35)) !important;
}

.logo {
    width: 100% !important;
    text-align: center !important;
    top: 110px !important;
    position: absolute !important;
    filter: drop-shadow(0 0 20px rgba(201, 161, 92, 0.5)) !important;
}

.logo img {
    max-width: 600px !important;
    filter: drop-shadow(0 0 15px rgba(201, 161, 92, 0.4)) !important;
}

/* === SERVER TIME - ABSOLUTE POSITION === */
html #timer_div_title,
body > #timer_div_title,
#timer_div_title {
    position: absolute !important;
    height: auto !important;
    width: auto !important;
    top: 20px !important;
    right: 430px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 999 !important;
    color: #8a6a2a !important;
    font-size: 11px !important;
    text-align: center !important;
    font-weight: 600 !important;
    pointer-events: none !important;
    font-family: 'Open Sans', sans-serif !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    background: rgba(26, 18, 10, 0.9) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
}

#server-time-display {
    color: #c9a15c !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    display: block !important;
    margin-top: 3px !important;
}

/* === CONTAINER - 3 COLUMN LAYOUT === */
.container {
    min-height: 1050px !important;
    display: flex !important;
    position: relative !important;
    gap: 20px !important;
    justify-content: space-between !important;
    margin-top: 400px !important;
    padding: 0 !important;
    z-index: 50 !important;
}

/* stare ozdobne ikonki w rogach i na srodku — ukryte */
.container:before,
.container:after,
main.content:before,
main.content:after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Sidebary — bez clipowania zeby box-shadow poszczegolnych p-blockow byl widoczny */
aside.left-sidebar,
aside.right-sidebar {
    overflow: visible !important;
}

.left-sidebar .p-block,
.right-sidebar .p-block,
.left-sidebar .download-block {
    border-radius: 8px !important;
    overflow: visible !important;
}

.container:before {
    content: "" !important;
    background: url(images/left-container-icon.png) no-repeat !important;
    left: -35px !important;
    top: -34px !important;
    width: 74px !important;
    height: 73px !important;
    position: absolute !important;
    z-index: 1 !important;
}

.container:after {
    content: "" !important;
    background: url(images/right-container-icon.png) no-repeat !important;
    right: -35px !important;
    top: -34px !important;
    width: 74px !important;
    height: 73px !important;
    position: absolute !important;
}

/* === LEFT SIDEBAR === */
aside.left-sidebar {
    width: 285px !important;
    background: transparent !important;
    margin-bottom: 50px !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* usuniecie starej ikonki dekoracyjnej w rogu */
aside.left-sidebar:after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.download-block {
    background: linear-gradient(135deg, rgba(201, 161, 92, 0.3) 0%, rgba(138, 106, 42, 0.2) 100%) !important;
    height: 90px !important;
    box-shadow: 0px 5px 20px -2px rgba(201, 161, 92, 0.3) !important;
    border: 1px solid rgba(201, 161, 92, 0.3) !important;
    display: flex !important;
    align-items: center !important;
}

.download-block a {
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    font-size: 11px !important;
    color: #4a2f15 !important;
    line-height: 1.5 !important;
    padding: 23px 0px 23px 90px !important;
    width: 100% !important;
}

.download-block a span {
    display: block !important;
    color: #c9a15c !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(201, 161, 92, 0.5) !important;
}

.p-block {
    padding: 10px !important;
    overflow: visible !important;
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.95), rgba(12, 8, 4, 0.95)) !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 20px !important;
}

.p-block:last-child {
    margin-bottom: 0 !important;
}

.events-block {
    overflow: visible !important;
}

.login-block {
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.95) 0%, rgba(5, 3, 2, 0.95) 100%) !important;
    border: 1px solid rgba(201, 161, 92, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 0 10px rgba(201, 161, 92, 0.15) !important;
    margin-bottom: 20px !important;
}

.login-block .login-block-title {
    margin-bottom: 20px !important;
}

.login-block .login-block-title span {
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    color: #c9a15c !important;
    text-shadow: 0 0 8px rgba(201, 161, 92, 0.5) !important;
}

.login-block .login-block-title a {
    color: #4a2f15 !important;
    font-size: 12px !important;
}

/* User Menu Styles */
.user-menu {
    position: relative !important;
    z-index: 10 !important;
}

.user-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.user-menu ul li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.user-menu ul li a {
    display: block !important;
    padding: 10px 12px !important;
    color: #d9c48f !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(201, 161, 92, 0.15) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 10 !important;
}

.user-menu ul li a:hover {
    background: rgba(201, 161, 92, 0.1) !important;
    color: #c9a15c !important;
    padding-left: 18px !important;
}

.user-menu ul li:last-child a {
    border-bottom: none !important;
}

.login-block input[type="text"],
.login-block input[type="password"] {
    background: rgba(18, 12, 6, 0.8) !important;
    border: 1px solid rgba(201, 161, 92, 0.3) !important;
    color: #d9c48f !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    height: 36px !important;
    padding: 0px 10px 0px 45px !important;
    width: 100% !important;
    border-radius: 4px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
}

.login-block input:focus {
    border-color: #c9a15c !important;
    box-shadow: 0 0 10px rgba(201, 161, 92, 0.3) !important;
    outline: none !important;
}

.login-in input {
    background-image: url(images/login-icon.png) !important;
}

.password-in input {
    background-image: url(images/password-icon.png) !important;
}

.login-block .checkbox-block {
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
}

.login-block .login-button {
    margin-bottom: 10px !important;
    text-align: center !important;
}

.login-block .login-button button,
.green-button {
    background: linear-gradient(135deg, #c9a15c 0%, #4a2f15 100%) !important;
    color: #ffffff !important;
    border: 1px solid #8a6a2a !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    width: 100% !important;
    display: block !important;
    box-shadow: 0 3px 8px rgba(138, 106, 42, 0.3) !important;
}

.login-block .login-button button:hover,
.green-button:hover {
    background: linear-gradient(135deg, #4a2f15 0%, #c9a15c 100%) !important;
    box-shadow: 0 5px 15px rgba(201, 161, 92, 0.5) !important;
    border-color: #c9a15c !important;
}

/* Checkbox styling */
.checkbox {
    display: none !important;
}

.checkbox-custom {
    position: relative !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid rgba(201, 161, 92, 0.5) !important;
    border-radius: 3px !important;
    background: rgba(18, 12, 6, 0.8) !important;
    display: inline-block !important;
}

.label {
    margin-left: 9px !important;
    margin-bottom: -2px !important;
    color: #d9c48f !important;
    font-size: 11px !important;
}

.checkbox:checked + .checkbox-custom::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    top: 0px !important;
    left: 0px !important;
    background: url(images/check.png) center no-repeat !important;
}

/* === SIDEBAR TITLE — matcha home-panel-title === */
.sidebar-title {
    color: transparent !important; /* ukrywa subtitle text */
    font-size: 0 !important;
    line-height: 0 !important;
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(138, 106, 42, 0.3) !important;
    font-family: 'Open Sans', 'Segoe UI', Arial, Tahoma, sans-serif !important;
    position: relative !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.sidebar-title a,
.sidebar-title span {
    pointer-events: auto !important;
}

/* Fix for clickable links in dashboard grid */
.p-block > div[style*="padding"] {
    position: relative !important;
    z-index: 5 !important;
}

.p-block > div[style*="padding"] a {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.sidebar-title span {
    display: block !important;
    font-size: 12px !important;
    color: #5dade2 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    font-family: 'Open Sans', 'Segoe UI', Arial, Tahoma, sans-serif !important;
}

.sidebar-title span i {
    color: #c9a15c !important;
    margin-right: 4px !important;
}

.sidebar-title .title-t {
    flex: 1 !important;
}

.sidebar-title .title-t span {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* stare ozdobne badge przy tytule — ukryte */
.sidebar-title .top-title-img,
.sidebar-title .forum-img {
    display: none !important;
}

.sidebar-title.sidebar-forum-title .forum-img {
    background: url(images/forum-title-bg.png) no-repeat !important;
}

/* === TOP PLAYERS BLOCK === */
.top-players-block {
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.9) 0%, rgba(5, 3, 2, 0.9) 100%) !important;
    border: 1px solid rgba(201, 161, 92, 0.25) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(201, 161, 92, 0.2) !important;
    margin-bottom: 20px !important;
}

.players {
    color: #d9c48f !important;
}

.players-block {
    padding: 10px 15px !important;
}

.players-block ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.players-block ul li {
    display: block !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(201, 161, 92, 0.2) !important;
    color: #d9c48f !important;
}

.players-block ul li:last-child {
    border-bottom: none !important;
}

.players-block ul li a {
    color: #c9a15c !important;
    font-weight: bold !important;
}

.players-block ul li img {
    margin-right: 5px !important;
    vertical-align: middle !important;
}

/* Tables in sidebar */
.players-block table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.players-block table.tables {
    font-size: 11px !important;
}

.players-block table thead tr.tables_top {
    background: linear-gradient(135deg, rgba(201, 161, 92, 0.2) 0%, rgba(138, 106, 42, 0.1) 100%) !important;
}

.players-block table th,
.players-block table td {
    text-align: center !important;
    padding: 6px 4px !important;
    color: #d9c48f !important;
}

.players-block table th {
    color: #c9a15c !important;
    font-weight: bold !important;
    border-bottom: 1px solid rgba(201, 161, 92, 0.3) !important;
}

.players-block table tbody tr.tables_bottom {
    border-bottom: 1px dashed rgba(201, 161, 92, 0.1) !important;
}

.players-block table tbody tr:hover {
    background: rgba(201, 161, 92, 0.1) !important;
}

/* === CONTENT - MIDDLE COLUMN === */
main.content {
    width: 790px !important;
    padding: 30px 20px 40px 20px !important;
    position: relative !important;
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.95) 0%, rgba(5, 3, 2, 0.95) 100%) !important;
    border: 1px solid rgba(201, 161, 92, 0.3) !important;
    border-radius: 8px !important;
    line-height: 1.6 !important;
    flex-shrink: 0 !important;
    margin-bottom: 110px !important;
}

main.content:before {
    content: "" !important;
    background: url(images/top-content-icon.png) no-repeat !important;
    left: 50% !important;
    margin-left: -70px !important;
    top: -41px !important;
    width: 143px !important;
    height: 74px !important;
    position: absolute !important;
    z-index: 11 !important;
}

main.content:after {
    content: "" !important;
    background: url(images/bottom-content-icon.png) no-repeat !important;
    left: -30px !important;
    bottom: -12px !important;
    width: 890px !important;
    height: 40px !important;
    position: absolute !important;
}

main.content img {
    max-width: 100% !important;
    height: auto !important;
}

/* === SLIDER === */
.slider {
    overflow: hidden !important;
    position: relative !important;
    width: 630px !important;
    height: 214px !important;
    margin: -30px -20px 20px -20px !important;
    z-index: 10 !important;
    border: 2px solid rgba(201, 161, 92, 0.3) !important;
    box-shadow: 0 0 20px rgba(201, 161, 92, 0.2) !important;
}

.slider .slides {
    position: relative !important;
    transition: 1s !important;
    display: flex !important;
}

.slider .slides .active .slider-text {
    transition: all 2s ease !important;
    bottom: 20px !important;
}

.slider .slides .slide {
    float: left !important;
    display: block !important;
    position: relative !important;
    min-width: 630px !important;
}

.slider .slides .slide:after {
    content: "" !important;
    position: absolute !important;
    height: 100% !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    box-shadow: inset 0px 0px 40px 20px rgba(0, 0, 0, 0.6) !important;
}

.slider .slides .slide .slider-text {
    position: absolute !important;
    bottom: -200px !important;
    left: 0px !important;
    padding: 15px 30px !important;
    width: calc(100% - 60px) !important;
    color: #e0f0ff !important;
    line-height: 1.4 !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
    z-index: 4 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.slider .slides .slide h1 {
    margin-bottom: 5px !important;
    color: #c9a15c !important;
    font-size: 36px !important;
    text-shadow: 0 0 20px rgba(201, 161, 92, 0.8) !important;
}

.slider .slides .slide p {
    color: #e0f0ff !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.slider .slides .slide img {
    width: 630px !important;
    max-width: 630px !important;
    height: 214px !important;
    display: block !important;
}

.slider .next {
    position: absolute !important;
    background: url(images/arrow-right.png) no-repeat !important;
    height: 30px !important;
    width: 30px !important;
    right: 20px !important;
    top: 95px !important;
    z-index: 12 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: all 0.7s ease !important;
}

.slider .prev {
    position: absolute !important;
    background: url(images/arrow-left.png) no-repeat !important;
    height: 30px !important;
    width: 30px !important;
    left: 20px !important;
    top: 95px !important;
    z-index: 12 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: all 0.7s ease !important;
}

.slider:hover .next,
.slider:hover .prev {
    opacity: 1 !important;
}

.slider .navigation {
    position: absolute !important;
    left: 50% !important;
    bottom: 15px !important;
    transform: translateX(-50%) !important;
    z-index: 12 !important;
    display: flex !important;
    gap: 8px !important;
}

.slider .navigation .dot {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(201, 161, 92, 0.5) !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.slider .navigation .dot.active {
    background: rgba(201, 161, 92, 0.8) !important;
    box-shadow: 0 0 10px rgba(201, 161, 92, 0.6) !important;
}

/* === TABS === */
.tabs {
    padding: 20px !important;
    box-shadow: 0px 25px 30px -5px rgba(0, 0, 0, 0.2) !important;
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.8) 0%, rgba(5, 3, 2, 0.8) 100%) !important;
    margin: 0px -20px 20px -20px !important;
    border-top: 1px solid rgba(201, 161, 92, 0.3) !important;
    min-height: 400px !important;
}

/* === CAROUSEL === */
.carousel {
    position: relative !important;
    width: 590px !important;
    padding: 0px 40px !important;
    margin: 0 auto !important;
}

.carousel .gallery {
    overflow: hidden !important;
    width: 510px !important;
}

.carousel .gallery .images {
    display: flex !important;
    transition: transform 0.5s ease !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel .gallery .images li {
    min-width: 170px !important;
    margin-right: 0px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.9) 0%, rgba(5, 3, 2, 0.9) 100%) !important;
    border: 1px solid rgba(201, 161, 92, 0.2) !important;
    border-radius: 8px !important;
    text-align: center !important;
}

.shop-img {
    text-align: center !important;
    padding: 10px 0 !important;
}

.shop-img img {
    max-width: 64px !important;
    max-height: 64px !important;
    filter: drop-shadow(0 0 10px rgba(201, 161, 92, 0.3)) !important;
}

.shop-title {
    color: #c9a15c !important;
    font-size: 12px !important;
    margin: 10px 0 5px 0 !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

.shop-price {
    color: #d9c48f !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin: 5px 0 !important;
}

.shop-button {
    margin-top: 10px !important;
}

.arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    height: 30px !important;
    width: 30px !important;
    display: block !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease !important;
}

.arrow:hover {
    opacity: 1 !important;
}

.arrow.prev {
    left: 0px !important;
    background: url(images/nav-left.png) no-repeat !important;
}

.arrow.next {
    right: 0px !important;
    background: url(images/nav-right.png) no-repeat !important;
}

/* === RIGHT SIDEBAR === */
aside.right-sidebar {
    width: 285px !important;
    background: transparent !important;
    margin-bottom: 50px !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

aside.right-sidebar:after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* === SERVER BLOCK === */
.server-block {
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.9) 0%, rgba(5, 3, 2, 0.9) 100%) !important;
    border: 1px solid rgba(201, 161, 92, 0.25) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(201, 161, 92, 0.2) !important;
    margin-bottom: 20px !important;
}

.servers {
    padding: 20px !important;
}

.server {
    margin-bottom: 15px !important;
    text-align: center !important;
}

.server .server-x {
    font-size: 24px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
}

.server.online .server-x {
    color: #22c55e !important;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.6) !important;
}

.server.off .server-x {
    color: #ef4444 !important;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6) !important;
}

.server-info {
    margin-top: 15px !important;
}

.server-name {
    color: #d9c48f !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

.server-name span {
    display: block !important;
}

.server-name b {
    color: #c9a15c !important;
    font-weight: bold !important;
}

.server-description {
    margin-top: 10px !important;
}

.server-description a {
    color: #4a2f15 !important;
    text-decoration: underline !important;
}

.server-description a:hover {
    color: #c9a15c !important;
}

/* === FORUM BLOCK === */
.forum-block.fast-links-block {
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.9) 0%, rgba(5, 3, 2, 0.9) 100%) !important;
    border: 1px solid rgba(201, 161, 92, 0.25) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(201, 161, 92, 0.2) !important;
    margin-bottom: 20px !important;
}

#lattest_items {
    padding: 10px 15px !important;
}

.rsss {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed rgba(201, 161, 92, 0.2) !important;
}

.rsss:last-child {
    border-bottom: none !important;
}

.theme {
    display: flex !important;
    align-items: flex-start !important;
}

.theme_icon {
    margin-right: 10px !important;
}

.theme_icon img {
    width: 20px !important;
    height: 20px !important;
}

.theme_title {
    flex: 1 !important;
}

.theme_title a {
    color: #4a2f15 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

.theme_title a:hover {
    color: #c9a15c !important;
}

/* === FOOTER === */
footer.footer {
    background: linear-gradient(180deg, rgba(5, 3, 2, 0.8) 0%, rgba(15, 10, 5, 0.95) 100%) !important;
    border-top: 2px solid rgba(201, 161, 92, 0.3) !important;
    padding: 15px 0 10px 0 !important;
    clear: both !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Bottom nav w jednej bryle z footerem — gorne rogi zaokraglone */
nav.bottom-nav {
    border-radius: 12px 12px 0 0 !important;
}

.footer-info {
    text-align: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.copyright {
    color: #d9c48f !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    margin-bottom: 7px !important;
}

.f-menu {
    margin-top: 15px !important;
}

.f-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.f-menu li {
    display: inline-block !important;
    margin: 0 10px !important;
}

.f-menu a {
    color: #4a2f15 !important;
    font-size: 11px !important;
}

.f-menu a:hover {
    color: #c9a15c !important;
    text-shadow: 0 0 8px rgba(201, 161, 92, 0.5) !important;
}

/* === BUTTONS === */
button,
button[type="submit"],
.button,
.btn-primary,
.bg-gradient-to-r {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #c9a15c 0%, #4a2f15 100%) !important;
    border: 1px solid #c9a15c !important;
    color: #0f0a05 !important;
    text-transform: uppercase !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important;
    text-shadow: none !important;
}

button:hover,
button[type="submit"]:hover,
.button:hover,
.btn-primary:hover,
.bg-gradient-to-r:hover {
    background: linear-gradient(135deg, #4a2f15 0%, #0099cc 100%) !important;
    box-shadow: 0 0 20px rgba(201, 161, 92, 0.6) !important;
}

.button-small {
    padding: 6px 15px !important;
    font-size: 11px !important;
}

/* === FORM INPUTS === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: rgba(18, 12, 6, 0.8) !important;
    border: 1px solid rgba(201, 161, 92, 0.3) !important;
    color: #d9c48f !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #c9a15c !important;
    box-shadow: 0 0 10px rgba(201, 161, 92, 0.3) !important;
    outline: none !important;
}

::placeholder {
    color: rgba(217, 196, 143, 0.4) !important;
}

/* === TABLES === */
table {
    width: 100% !important;
    border-collapse: collapse !important;
}

table thead {
    background: linear-gradient(135deg, rgba(201, 161, 92, 0.2) 0%, rgba(138, 106, 42, 0.1) 100%) !important;
}

table thead th {
    color: #c9a15c !important;
    border-bottom: 2px solid rgba(201, 161, 92, 0.3) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 8px !important;
}

table tbody tr {
    background: rgba(18, 12, 6, 0.5) !important;
    border-bottom: 1px solid rgba(201, 161, 92, 0.1) !important;
}

table tbody tr:hover {
    background: rgba(201, 161, 92, 0.1) !important;
}

table tbody td {
    padding: 10px 8px !important;
    color: #d9c48f !important;
}

/* === BADGES === */
.badge,
.bg-mu-gold {
    background: linear-gradient(135deg, #c9a15c 0%, #4a2f15 100%) !important;
    color: #0f0a05 !important;
    font-weight: 600 !important;
    box-shadow: 0 0 10px rgba(201, 161, 92, 0.3) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
}

.bg-green-500 {
    background: #22c55e !important;
    color: #fff !important;
}

.bg-red-500 {
    background: #ef4444 !important;
    color: #fff !important;
}

/* === TEXT COLORS === */
.text-mu-gold {
    color: #c9a15c !important;
}

.text-mu-text {
    color: #d9c48f !important;
}

.text-mu-light {
    color: #e0f0ff !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px !important;
}

::-webkit-scrollbar-track {
    background: #0a0603 !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c9a15c 0%, #8a6a2a 100%) !important;
    border-radius: 6px !important;
    border: 2px solid rgba(138, 106, 42, 0.2) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8a6a2a 0%, #c9a15c 100%) !important;
    box-shadow: 0 0 8px rgba(201, 161, 92, 0.4) !important;
}

/* === SELECTION === */
::selection {
    background: rgba(201, 161, 92, 0.3) !important;
    color: #e0f0ff !important;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .wrapper {
        width: 100% !important;
        padding: 0 20px !important;
        min-width: 100% !important;
    }

    .container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    aside.left-sidebar,
    aside.right-sidebar,
    main.content {
        width: 100% !important;
    }

    .slider {
        width: 100% !important;
        margin: -30px 0 20px 0 !important;
    }

    .slider .slides .slide {
        min-width: 100% !important;
    }

    .slider .slides .slide img {
        width: 100% !important;
    }

    .carousel {
        width: 100% !important;
        padding: 0px 20px !important;
    }

    .carousel .gallery {
        width: calc(100% - 40px) !important;
    }
}

/* === ANIMATIONS === */
@keyframes glow-pulse {
    0% {
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 0 5px rgba(201, 161, 92, 0.5);
    }
    50% {
        filter: hue-rotate(10deg) brightness(1.3);
        box-shadow: 0 0 10px rgba(201, 161, 92, 0.8);
    }
    100% {
        filter: hue-rotate(0deg) brightness(1);
        box-shadow: 0 0 5px rgba(201, 161, 92, 0.5);
    }
}

.fire-border {
    background: linear-gradient(90deg, transparent, #c9a15c, #4a2f15, #c9a15c, transparent) !important;
    height: 2px !important;
    animation: glow-pulse 3s linear infinite !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* === HOME PAGE LAYOUT === */
/* Hide old layout when home page is active */
body.home-page .container {
    display: none !important;
}

/* Home v2 grid: row 1 = News (wide) + Account (narrow). Row 2 = 3 cards (Top10 / Events / Market). */
.home-container {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    grid-template-rows: auto auto !important;
    gap: 20px !important;
    width: 1400px !important;
    margin: 0 auto 50px auto !important;
    min-height: auto !important;
    position: relative !important;
    z-index: 50 !important;
}

/* News Panel — top-left hero column */
.home-news-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.95), rgba(12, 8, 4, 0.95)) !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(201, 161, 92, 0.12) !important;
    height: 520px !important;
    max-height: 520px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
}
.home-news-panel:hover {
    border-color: rgba(201, 161, 92, 0.55) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 161, 92, 0.18), inset 0 1px 0 rgba(201, 161, 92, 0.15) !important;
}

.home-news-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #5dade2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(138, 106, 42, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.home-news-title i {
    color: #c9a15c !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

.home-news-content {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

.news-item {
    transition: all 0.3s ease !important;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(138, 106, 42, 0.3) !important;
}

/* Bottom row — Top10 / Events / Market as 3 equal cards, inside the hero, under hero-inner */
.home-sidebar {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: auto !important;
    margin-top: 20px !important;
}

.home-panel {
    background:
        radial-gradient(ellipse at top, rgba(93, 173, 226, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(15, 10, 5, 0.96), rgba(10, 6, 3, 0.96)) !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    border-radius: 12px !important;
    padding: 22px 22px 18px 22px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 161, 92, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Sidebar panels - 3 panels side by side with equal width.
   Height tuned so Top 10 Players (10 rows + header) fits without inner scroll. */
.home-sidebar .home-panel {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 630px !important;
    max-height: 630px !important;
    padding: 20px 20px 16px 20px !important;
}

/* Top 10 Players - must fit in 500px, no scroll */
.home-sidebar .home-panel:first-child {
    overflow: visible !important;
}

/* News and Events panels - 500px with scroll if needed */
.home-sidebar .home-panel:nth-child(2),
.home-sidebar .home-panel:nth-child(3) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.home-panel-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #5dade2 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.3px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(138, 106, 42, 0.3) !important;
    flex-shrink: 0 !important;
}

.home-panel-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 4px !important;
}

.home-panel-content::-webkit-scrollbar {
    width: 6px !important;
}

.home-panel-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 3px !important;
}

.home-panel-content::-webkit-scrollbar-thumb {
    background: rgba(138, 106, 42, 0.5) !important;
    border-radius: 3px !important;
}

.home-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 106, 42, 0.7) !important;
}

/* Top Players Panel */
.top-players-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    min-height: 0 !important;
}

.top-player-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 3px 6px !important;
    border-bottom: 1px dashed rgba(138, 106, 42, 0.2) !important;
    transition: background 0.2s !important;
}

.top-player-item:hover {
    background: rgba(138, 106, 42, 0.05) !important;
}

.top-player-item:last-child {
    border-bottom: none !important;
}

/* Top 10 panel: usun podwojny padding (li + a maja oba po 6px 8px) i scisnij wiersz,
   inaczej 10 wierszy nie miesci sie w panelu 500px wysokosci. */
.home-sidebar .home-panel:first-child .top-player-item {
    padding: 0 !important;
}

.top-player-name {
    color: #5dade2 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* Ikony w tytulach paneli zostaja zlote (kontrast z niebieskim tekstem) */
.home-panel-title i {
    color: #c9a15c !important;
}

.top-player-level {
    color: #d9c48f !important;
    font-weight: 500 !important;
    font-size: 10px !important;
}

/* Market Panel */
.market-items-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.market-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(138, 106, 42, 0.2) !important;
    font-size: 11px !important;
}

.market-item:last-child {
    border-bottom: none !important;
}

.market-item-name {
    color: #c9a15c !important;
    font-weight: 500 !important;
}

.market-item-price {
    color: #8a6a2a !important;
    font-weight: 600 !important;
}

/* Login Panel */
.home-login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.home-login-input {
    background: rgba(15, 10, 5, 0.8) !important;
    border: 1px solid rgba(138, 106, 42, 0.4) !important;
    color: #d9c48f !important;
    padding: 10px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

/* Select serwera w wierszu z linkiem — kompaktowy, niższy niż inputy tekstowe */
select.home-login-input {
    padding: 5px 8px !important;
    font-size: 11px !important;
    height: 28px !important;
    line-height: 1 !important;
}

.home-login-input:focus {
    border-color: #c9a15c !important;
    box-shadow: 0 0 10px rgba(201, 161, 92, 0.4) !important;
    outline: none !important;
    background: rgba(15, 10, 5, 0.9) !important;
}

.home-login-input::placeholder {
    color: rgba(201, 161, 92, 0.5) !important;
}

.home-login-input:-webkit-autofill,
.home-login-input:-webkit-autofill:hover,
.home-login-input:-webkit-autofill:focus,
.home-login-input:-webkit-autofill:active,
.login-form input.form-input:-webkit-autofill,
.login-form input.form-input:-webkit-autofill:hover,
.login-form input.form-input:-webkit-autofill:focus,
.login-form input.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 10, 5, 0.9) inset !important;
    -webkit-text-fill-color: #e8d9a8 !important;
    caret-color: #e8d9a8 !important;
    border: 1px solid rgba(138, 106, 42, 0.4) !important;
    transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s !important;
}

.home-login-button {
    background: linear-gradient(135deg, #4a2f15 0%, #c9a15c 100%) !important;
    color: #ffffff !important;
    border: 1px solid #8a6a2a !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    box-shadow: 0 3px 8px rgba(138, 106, 42, 0.3) !important;
}

.home-login-button:hover {
    background: linear-gradient(135deg, #c9a15c 0%, #4a2f15 100%) !important;
    box-shadow: 0 5px 15px rgba(201, 161, 92, 0.5) !important;
    border-color: #c9a15c !important;
}

/* Event Timer Tab Buttons */
.home-event-tab-btn {
    padding: 6px 12px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.home-event-tab-btn.active {
    background: linear-gradient(135deg, #8a6a2a 0%, #c9a15c 100%) !important;
    color: #ffffff !important;
    border-color: #8a6a2a !important;
    box-shadow: 0 2px 6px rgba(138, 106, 42, 0.4) !important;
}

.home-event-tab-btn.inactive {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #c9a15c !important;
    border-color: rgba(138, 106, 42, 0.2) !important;
}

.home-event-tab-btn.inactive:hover {
    background: rgba(138, 106, 42, 0.3) !important;
    color: #d9c48f !important;
    border-color: rgba(138, 106, 42, 0.5) !important;
}

.home-login-links {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
}

.home-login-link {
    color: #c9a15c !important;
    font-size: 11px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.home-login-link:hover {
    color: #8a6a2a !important;
}

/* === HOME PAGE FOOTER === */
.home-footer {
    width: 1400px !important;
    margin: 40px auto 20px auto !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(138, 106, 42, 0.3) !important;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
}

.footer-left {
    flex: 1 !important;
}

.footer-center {
    flex: 1 !important;
    text-align: center !important;
}

.footer-center p {
    margin: 0 !important;
    color: rgba(201, 161, 92, 0.8) !important;
    font-size: 11px !important;
}

.footer-right {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 15px !important;
}

.footer-right a {
    color: #c9a15c !important;
    font-size: 11px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid transparent !important;
}

.footer-right a:hover {
    color: #8a6a2a !important;
    border-bottom-color: #8a6a2a !important;
}

.discord-button {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(88, 101, 242, 0.3) !important;
    box-shadow: 0 2px 6px rgba(88, 101, 242, 0.3) !important;
}

.discord-button:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3c45a5 100%) !important;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4) !important;
}

.discord-button i {
    font-size: 16px !important;
}

/* Event Timer Tabs - flex-shrink */
.home-event-tab-nav {
    flex-shrink: 0 !important;
}

/* Event Timer Content Areas */
#home-events-content,
#home-invasion-content {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

/* Custom Scrollbar for News and Panels */
.home-news-content::-webkit-scrollbar,
.top-players-list::-webkit-scrollbar,
#home-events-content::-webkit-scrollbar,
#home-invasion-content::-webkit-scrollbar,
.home-panel::-webkit-scrollbar {
    width: 8px !important;
}

.home-news-content::-webkit-scrollbar-track,
.top-players-list::-webkit-scrollbar-track,
#home-events-content::-webkit-scrollbar-track,
#home-invasion-content::-webkit-scrollbar-track,
.home-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
}

.home-news-content::-webkit-scrollbar-thumb,
.top-players-list::-webkit-scrollbar-thumb,
#home-events-content::-webkit-scrollbar-thumb,
#home-invasion-content::-webkit-scrollbar-thumb,
.home-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8a6a2a, #c9a15c) !important;
    border-radius: 4px !important;
}

.home-news-content::-webkit-scrollbar-thumb:hover,
.top-players-list::-webkit-scrollbar-thumb:hover,
#home-events-content::-webkit-scrollbar-thumb:hover,
#home-invasion-content::-webkit-scrollbar-thumb:hover,
.home-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c9a15c, #8a6a2a) !important;
}

/* =========================================================================
   HOME MODERN ÜBER-LAYER (2026-05-17)
   Hero banner + animated glows + quick stats strip — sits above .home-container.
   ========================================================================= */

@keyframes home-hero-pulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    50%      { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
@keyframes home-hero-glow-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%      { transform: translate(40px, -20px) scale(1.15); opacity: 0.85; }
}
@keyframes home-hero-glow-2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    50%      { transform: translate(-30px, 20px) scale(1.12); opacity: 0.75; }
}
@keyframes home-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes home-num-shine {
    0%, 100% { text-shadow: 0 0 10px rgba(232, 200, 125, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6); }
    50%      { text-shadow: 0 0 20px rgba(232, 200, 125, 0.8), 0 0 30px rgba(232, 200, 125, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6); }
}

/* ---- HERO PANEL — single container that holds ALL home cards
   (News + Account on top row, Top10/Events/Market on bottom row). ---- */
.home-hero {
    position: relative;
    width: 1400px;
    margin: 400px auto 50px auto;
    padding: 22px;
    border-radius: 12px;
    overflow: visible;
    background:
        radial-gradient(ellipse at top, rgba(93, 173, 226, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(15, 10, 5, 0.96), rgba(10, 6, 3, 0.96));
    border: 1px solid rgba(138, 106, 42, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 161, 92, 0.12);
    z-index: 50;
}
.home-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 161, 92, 0.4), transparent);
    pointer-events: none;
    z-index: 1;
}

/* legacy animated layers — kept in HTML but hidden so the panel reads as flat */
.home-hero-bg,
.home-hero-glow,
.home-hero-grid { display: none !important; }

.home-hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    padding: 0;
    align-items: stretch;
}

.home-hero-left { flex: 1 1 auto; min-width: 0; }

.home-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 999px;
    color: #4ade80;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 18px;
}
.home-hero-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    animation: home-hero-pulse 1.8s ease-in-out infinite;
}

.home-hero-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 64px; font-weight: 900; line-height: 1;
    margin: 0 0 12px 0;
    color: #f5e6c8;
    letter-spacing: -1px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.home-hero-accent {
    background: linear-gradient(135deg, #e8c87d 0%, #c9a15c 40%, #5dade2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(232, 200, 125, 0.35));
}
.home-hero-tagline {
    font-size: 16px; font-weight: 500; color: #a88f5f;
    margin: 0 0 28px 0;
    letter-spacing: 0.3px;
}

.home-hero-cta {
    display: flex; flex-wrap: wrap; gap: 12px;
}

.home-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.home-cta i { font-size: 13px; }

.home-cta-primary {
    background: linear-gradient(135deg, #c9a15c 0%, #8a6a2a 100%);
    color: #1a1208 !important;
    border-color: #e8c87d;
    box-shadow: 0 4px 14px rgba(201, 161, 92, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.home-cta-primary:hover {
    background: linear-gradient(135deg, #e8c87d 0%, #c9a15c 100%);
    box-shadow: 0 6px 22px rgba(232, 200, 125, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.home-cta-secondary {
    background: rgba(93, 173, 226, 0.12);
    color: #5dade2 !important;
    border-color: rgba(93, 173, 226, 0.5);
    box-shadow: 0 4px 14px rgba(93, 173, 226, 0.1);
}
.home-cta-secondary:hover {
    background: rgba(93, 173, 226, 0.25);
    border-color: #5dade2;
    color: #a3d5f0 !important;
    box-shadow: 0 6px 22px rgba(93, 173, 226, 0.35);
    transform: translateY(-2px);
}

.home-cta-ghost {
    background: rgba(0, 0, 0, 0.3);
    color: #d9c48f !important;
    border-color: rgba(138, 106, 42, 0.5);
}
.home-cta-ghost:hover {
    background: rgba(138, 106, 42, 0.2);
    border-color: #c9a15c;
    color: #e8c87d !important;
    transform: translateY(-2px);
}

.home-cta-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    color: #ffffff !important;
    border-color: #5865F2;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}
.home-cta-discord:hover {
    background: linear-gradient(135deg, #7983ff 0%, #5865F2 100%);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
}

/* ---- Hero status card (right side) ---- */
.home-hero-right { flex: 0 0 360px; }

/* =========================================================================
   HERO v4 — News carousel (1 slide visible, up/down arrows) + Account card.
   Both cards match the bottom panel styling (gradient + border + glow on hover).
   ========================================================================= */

.home-hero-card {
    position: relative;
    background:
        radial-gradient(ellipse at top, rgba(93, 173, 226, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(15, 10, 5, 0.96), rgba(10, 6, 3, 0.96));
    border: 1px solid rgba(138, 106, 42, 0.3);
    border-radius: 12px;
    padding: 20px 20px 18px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 161, 92, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.home-hero-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 161, 92, 0.4), transparent);
    pointer-events: none;
    z-index: 1;
}
.home-hero-card:hover {
    border-color: rgba(232, 200, 125, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(201, 161, 92, 0.15), inset 0 1px 0 rgba(232, 200, 125, 0.18);
}

/* News carousel nav — Next / Previous text buttons matching hp-server-switch pills */
.home-hero-news-nav {
    display: inline-flex; align-items: center; gap: 4px;
}
.home-hero-news-nav-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    background: rgba(0,0,0,0.3) !important;
    color: #c9a15c !important;
    border: 1px solid rgba(138, 106, 42, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.home-hero-news-nav-btn:hover {
    background: rgba(138, 106, 42, 0.25) !important;
    border-color: rgba(201, 161, 92, 0.7) !important;
    color: #e8c87d !important;
    box-shadow: none !important;
}
.home-hero-news-nav-btn i { font-size: 7px; }
.home-hero-news-counter {
    font-size: 10px; font-weight: 700; color: #a88f5f;
    letter-spacing: 0.5px; min-width: 26px; text-align: center;
    padding: 0 4px;
}

/* User card "Signed in" pill (right side of panel-title when logged in) */
.home-hero-signed {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 999px;
    color: #4ade80;
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}

.home-hero-news-stage {
    flex: 1 0 235px; min-height: 235px;
    position: relative;
    overflow: hidden;
}
.home-hero-news-slide {
    position: absolute; inset: 0;
    display: none;
    gap: 18px;
    align-items: stretch; /* thumb stretches to body height */
}
.home-hero-news-slide.is-active {
    display: flex;
    animation: heroNewsFade 0.35s ease;
}
@keyframes heroNewsFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-hero-news-thumb {
    flex: 0 0 130px;
    width: 130px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(138, 106, 42, 0.35);
    background: linear-gradient(135deg, rgba(138, 106, 42, 0.12), rgba(0, 0, 0, 0.4));
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.45);
    display: flex; align-items: center; justify-content: center;
    align-self: stretch; /* full height of slide */
}
.home-hero-news-thumb img {
    max-width: 75%; max-height: 75%;
    width: auto; height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.home-hero-news-thumb-icon { max-width: 78%; max-height: 78%; }

.home-hero-news-body {
    flex: 1; min-width: 0; min-height: 0; overflow: hidden;
    display: flex; flex-direction: column; gap: 4px;
}
.home-hero-news-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 20px; font-weight: 800;
    color: #f5e6c8;
    margin: 0;
    letter-spacing: 0.4px; line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-hero-news-excerpt {
    font-size: 12.5px; color: #cdbb90; line-height: 1.7;
    margin: 0;
    letter-spacing: 0.2px;
    /* Height-capped: fills the space between title and footer, clipping overflow with a soft fade
       so long articles never grow the card (keeps the homepage layout from shifting). */
    flex: 1 1 0; min-height: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.home-hero-news-excerpt b, .home-hero-news-excerpt strong { color: #f0d89a; font-weight: 700; }
.home-hero-news-excerpt em, .home-hero-news-excerpt i { color: #a3d5f0; font-style: italic; }
.home-hero-news-excerpt u { text-decoration: underline; }
.home-hero-news-excerpt a { color: #5dade2; text-decoration: underline; }
.home-hero-news-excerpt p, .home-hero-news-excerpt div { margin: 0 0 6px 0; }
.home-hero-news-excerpt ul, .home-hero-news-excerpt ol { margin: 4px 0; padding-left: 20px; }
.home-hero-news-excerpt li { margin: 2px 0; }
/* Footer: Read more (left) + meta (date · author, right) on same line */
.home-hero-news-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(138, 106, 42, 0.18);
}
.home-hero-news-meta {
    display: inline-flex; gap: 14px; flex-wrap: wrap;
    font-size: 11px; color: #a88f5f; letter-spacing: 0.3px;
}
.home-hero-news-meta i { color: #5dade2; font-size: 10px; margin-right: 5px; }
.home-hero-news-readmore {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: rgba(93, 173, 226, 0.1);
    border: 1px solid rgba(93, 173, 226, 0.35);
    border-radius: 5px;
    color: #5dade2 !important;
    text-decoration: none !important;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
    transition: all 0.2s;
}
.home-hero-news-readmore:hover {
    background: rgba(93, 173, 226, 0.22);
    border-color: #5dade2;
    color: #a3d5f0 !important;
}
.home-hero-news-readmore i { font-size: 9px; }

.home-hero-news-empty {
    text-align: center; padding: 40px 10px;
    color: #a88f5f;
}
.home-hero-news-empty i { font-size: 32px; margin-bottom: 10px; opacity: 0.5; }
.home-hero-news-empty p { font-size: 12px; margin: 0; }

/* Stats footer inside News card — inline (icon, big num, label all on one line) */
.home-hero-news-stats {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(138, 106, 42, 0.22);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.home-hero-mini-stat {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid;
    border-radius: 6px;
    transition: all 0.2s;
}
.home-hero-mini-stat:hover { background: rgba(0, 0, 0, 0.5); }
.home-hero-mini-stat i {
    font-size: 13px; flex-shrink: 0;
    width: 16px; text-align: center;
}
.home-hero-mini-num {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px; font-weight: 800;
    color: #e8c87d;
    line-height: 1;
}
.home-hero-mini-lbl {
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px;
    color: #a88f5f;
    line-height: 1;
}

/* Account card --------------------------------------------------------- */
.home-hero-account-form { display: flex; flex-direction: column; gap: 12px; }

.home-hero-field {
    position: relative;
    display: flex; align-items: center;
}
.home-hero-field i {
    position: absolute; left: 14px;
    color: #a88f5f; font-size: 13px;
    pointer-events: none; z-index: 2;
    transition: color 0.2s;
}
.home-hero-field input,
.home-hero-field select {
    width: 100% !important;
    padding: 12px 14px 12px 40px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border: 1px solid rgba(138, 106, 42, 0.4) !important;
    border-radius: 8px !important;
    color: #f5e6c8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}
.home-hero-field input:focus,
.home-hero-field select:focus {
    outline: none !important;
    border-color: rgba(93, 173, 226, 0.7) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.18) !important;
}
.home-hero-field input:focus + i,
.home-hero-field input:focus ~ i { color: #5dade2 !important; }
.home-hero-field input::placeholder { color: rgba(168, 143, 95, 0.55); }
.home-hero-field select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 30px !important; }

/* Autofill fix — prevent the white/yellow Chrome/Firefox autofill background */
.home-hero-field input:-webkit-autofill,
.home-hero-field input:-webkit-autofill:hover,
.home-hero-field input:-webkit-autofill:focus,
.home-hero-field input:-webkit-autofill:active,
.home-hero-field select:-webkit-autofill,
.home-hero-field select:-webkit-autofill:hover,
.home-hero-field select:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5e6c8 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(8, 5, 2, 0.95) inset !important;
    box-shadow: 0 0 0 1000px rgba(8, 5, 2, 0.95) inset !important;
    caret-color: #f5e6c8 !important;
    transition: background-color 9999s ease-out 0s, color 9999s ease-out 0s !important;
    background-clip: content-box !important;
    border: 1px solid rgba(138, 106, 42, 0.4) !important;
}
/* Firefox autofill */
.home-hero-field input:autofill {
    background: rgba(0, 0, 0, 0.55) !important;
    color: #f5e6c8 !important;
}

/* Login button — clean gold gradient matching the rest of the site, no sapphire/shimmer.
   High-specificity selectors so we beat the global `button { ... !important }` rule. */
button.home-hero-account-submit,
form button[type="submit"].home-hero-account-submit,
.home-hero-card button.home-hero-account-submit {
    width: 100%;
    padding: 11px 20px !important;
    margin-top: 4px !important;
    background: linear-gradient(135deg, #c9a15c 0%, #8a6a2a 100%) !important;
    border: 1px solid rgba(232, 200, 125, 0.7) !important;
    border-radius: 6px !important;
    color: #1a1208 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.3px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
button.home-hero-account-submit:hover,
form button[type="submit"].home-hero-account-submit:hover,
.home-hero-card button.home-hero-account-submit:hover {
    background: linear-gradient(135deg, #e8c87d 0%, #c9a15c 100%) !important;
    border-color: #e8c87d !important;
    box-shadow: 0 4px 14px rgba(201, 161, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}
.home-hero-account-submit:active { transform: translateY(0) !important; }
.home-hero-account-submit i { font-size: 12px !important; }

.home-hero-account-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(138, 106, 42, 0.2);
    font-size: 11px;
}
.home-hero-account-foot a {
    display: inline-flex; align-items: center; gap: 5px;
    color: #a88f5f !important;
    text-decoration: none !important;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.home-hero-account-foot a i { font-size: 10px; }
.home-hero-account-foot a:hover { color: #e8c87d !important; }

/* Logged-in user variant — compact, elegant (same height as Sign In form) */
.home-hero-user {
    display: flex; align-items: center; gap: 12px;
    padding: 2px 0 0 0;
    margin-bottom: 8px;
}
.home-hero-user .home-hero-user-name { flex: 1; min-width: 0; }
.home-hero-user .home-hero-admincp { margin-left: auto; flex-shrink: 0; }
.home-hero-user-avatar-img {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(201, 161, 92, 0.55);
    box-shadow: 0 0 12px rgba(201, 161, 92, 0.25);
    object-fit: cover;
    flex-shrink: 0;
}
.home-hero-user-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px; font-weight: 700;
    color: #e8c87d;
    letter-spacing: 0.3px;
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis;
}

/* Coin balances (DC / HP / QP) — one tiny row under the avatar/name */
.home-hero-coins {
    display: flex; gap: 5px;
    margin: 0 0 8px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(138, 106, 42, 0.2);
}
.home-hero-coin {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 2px 7px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
    border: 1px solid rgba(138, 106, 42, 0.3);
    border-radius: 5px;
    font-size: 10px; font-weight: 700; color: #e8c87d;
    line-height: 1.4; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.home-hero-coin i { font-size: 9px; width: 11px; text-align: center; }
.home-hero-coin b { font-size: 8px; color: #a88f5f; font-weight: 700; letter-spacing: 0.4px; }
.home-hero-coin.dc { border-left: 2px solid rgba(232, 200, 125, 0.6); }
.home-hero-coin.dc i { color: #e8c87d; }
.home-hero-coin.hp { border-left: 2px solid rgba(74, 222, 128, 0.5); }
.home-hero-coin.hp i { color: #4ade80; }
.home-hero-coin.qp { border-left: 2px solid rgba(192, 132, 252, 0.5); }
.home-hero-coin.qp i { color: #c084fc; }

.home-hero-user-links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.home-hero-user-links a {
    display: flex; align-items: center; gap: 11px;
    padding: 4px 13px;
    color: #d9c48f !important;
    text-decoration: none !important;
    font-size: 12.5px; font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 7px;
    border: 1px solid rgba(138, 106, 42, 0.18);
    border-left: 2px solid rgba(138, 106, 42, 0.35);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.12));
    transition: all 0.18s ease;
}

/* Admin CP pill in panel header — sits next to "Signed in" indicator */
.home-hero-admincp {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(232, 200, 125, 0.18), rgba(201, 161, 92, 0.12));
    border: 1px solid #c9a15c;
    border-radius: 999px;
    color: #e8c87d !important;
    font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 0 8px rgba(201, 161, 92, 0.25), inset 0 1px 0 rgba(232, 200, 125, 0.2);
}
.home-hero-admincp i { font-size: 9px; color: #e8c87d; }
.home-hero-admincp:hover {
    background: linear-gradient(135deg, rgba(232, 200, 125, 0.32), rgba(201, 161, 92, 0.22)) !important;
    border-color: #e8c87d !important;
    color: #f5e6c8 !important;
    box-shadow: 0 0 14px rgba(232, 200, 125, 0.5), inset 0 1px 0 rgba(232, 200, 125, 0.3);
}
.home-hero-admincp:hover i { color: #f5e6c8; }
.home-hero-user-links a i {
    color: #5dade2;
    font-size: 12px;
    width: 16px; text-align: center;
    transition: color 0.18s;
}
.home-hero-user-links a:hover {
    background: linear-gradient(90deg, rgba(138, 106, 42, 0.2), rgba(138, 106, 42, 0.06));
    border-color: rgba(201, 161, 92, 0.4);
    border-left-color: #c9a15c;
    color: #f0d89a !important;
}
.home-hero-user-links a:hover i { color: #a3d5f0; }

/* Logout — red accent */
.home-hero-user-link-danger { color: #fca5a5 !important; }
.home-hero-user-link-danger i { color: #f87171 !important; }
.home-hero-user-links a.home-hero-user-link-danger:hover {
    background: rgba(248, 113, 113, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #f87171 !important;
}
.home-hero-user-links a.home-hero-user-link-danger:hover i { color: #f87171 !important; }

/* Hero stats strip — 2 cards inside hero, below News+Account ------- */
.home-hero-stats {
    grid-column: 1 / -1;
    margin: 18px 36px 28px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.home-hero-stat {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(201, 161, 92, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(201, 161, 92, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.home-hero-stat:hover {
    border-color: rgba(232, 200, 125, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(232, 200, 125, 0.15);
}
.home-hero-stat-ico {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid;
}
.home-hero-stat-ico i { font-size: 20px; }
.home-hero-stat-body { flex: 1; min-width: 0; }
.home-hero-stat-num {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px; font-weight: 800;
    color: #e8c87d;
    line-height: 1.1;
}
.home-hero-stat-lbl {
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: #a88f5f;
    margin-top: 2px;
}

.home-status-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(201, 161, 92, 0.3);
    border-radius: 12px;
    padding: 24px 22px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(201, 161, 92, 0.15);
}

.home-status-ring {
    position: relative;
    width: 160px; height: 160px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, #5dade2, #c9a15c, #e8c87d, #5dade2);
    padding: 4px;
    box-shadow: 0 0 30px rgba(232, 200, 125, 0.3), 0 0 60px rgba(93, 173, 226, 0.15);
    animation: home-ring-spin 18s linear infinite;
}
.home-status-ring-inner {
    width: 100%; height: 100%;
    background: radial-gradient(circle, #1a1208 0%, #0a0603 100%);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: home-ring-spin 18s linear infinite reverse;
}
.home-status-num {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 42px; font-weight: 900;
    color: #e8c87d; line-height: 1;
    animation: home-num-shine 2.5s ease-in-out infinite;
}
.home-status-lbl {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: #a88f5f;
    margin-top: 6px;
}

.home-status-meta { display: flex; flex-direction: column; gap: 10px; }
.home-status-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(138, 106, 42, 0.2);
    border-radius: 6px;
    font-size: 12px; color: #d9c48f;
}
.home-status-row i { color: #c9a15c; width: 14px; text-align: center; }
.home-status-row > span { flex: 1; color: #a88f5f; }
.home-status-row strong { color: #e8c87d; font-weight: 700; }
.home-status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.home-status-dot-on {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80, 0 0 12px rgba(74, 222, 128, 0.5);
    animation: home-hero-pulse 2s ease-in-out infinite;
}

/* ---- QUICK STATS STRIP ---- */
.home-stats-strip {
    width: 1400px;
    margin: 0 auto 24px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 50;
}

.home-stat {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(15, 10, 5, 0.95), rgba(12, 8, 4, 0.95));
    border: 1px solid rgba(138, 106, 42, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
    cursor: default;
}
.home-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 161, 92, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 161, 92, 0.15);
}

.home-stat-ico {
    flex-shrink: 0;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid;
}
.home-stat-ico i { font-size: 22px; }

.home-stat-body { flex: 1; min-width: 0; }
.home-stat-num {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 24px; font-weight: 800;
    color: #e8c87d;
    line-height: 1.1;
}
.home-stat-lbl {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: #a88f5f;
    margin-top: 3px;
}

/* ---- Responsive collapse for hero (below 1400px the layout already breaks elsewhere too) ---- */
@media (max-width: 1430px) {
    .home-hero, .home-stats-strip { width: calc(100% - 40px); margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
    .home-hero-inner { flex-direction: column; padding: 32px 24px; }
    .home-hero-right { flex: 1 1 auto; width: 100%; }
    .home-hero-title { font-size: 44px; }
    .home-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   ACCOUNT CARD (Login form OR User menu) — sits next to News in row 1.
   ========================================================================= */
.home-account-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative;
    height: 520px;
    max-height: 520px;
    padding: 22px 22px;
    background:
        radial-gradient(ellipse at top left, rgba(93, 173, 226, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(201, 161, 92, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, rgba(15, 10, 5, 0.95), rgba(10, 6, 3, 0.95));
    border: 1px solid rgba(138, 106, 42, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(201, 161, 92, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.home-account-card::before {
    content: '';
    position: absolute; top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.6), rgba(232, 200, 125, 0.6), rgba(93, 173, 226, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}
.home-account-card:hover {
    border-color: rgba(232, 200, 125, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(93, 173, 226, 0.18), inset 0 1px 0 rgba(232, 200, 125, 0.2);
}

.home-account-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.home-account-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    background: rgba(93, 173, 226, 0.1);
    border: 1px solid rgba(93, 173, 226, 0.35);
    border-radius: 999px;
    color: #5dade2;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px;
}
.home-account-eyebrow i { font-size: 10px; }
.home-account-header-user .home-account-eyebrow {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}
.home-account-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: home-hero-pulse 1.8s ease-in-out infinite;
}
.home-account-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 106, 42, 0.5);
    border-radius: 6px;
    color: #c9a15c !important;
    text-decoration: none !important;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
    transition: all 0.2s;
}
.home-account-action i { font-size: 10px; }
.home-account-action:hover {
    background: rgba(138, 106, 42, 0.25);
    border-color: #c9a15c;
    color: #e8c87d !important;
}

.home-account-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px; font-weight: 800;
    color: #f5e6c8;
    margin: 4px 0 18px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Form ---------------------------------------------------------------- */
.home-account-form { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.home-account-field {
    position: relative;
    display: flex; align-items: center;
}
.home-account-field i {
    position: absolute; left: 14px;
    color: #a88f5f; font-size: 13px;
    pointer-events: none;
    z-index: 2;
}
.home-account-field input,
.home-account-field select {
    width: 100% !important;
    padding: 12px 14px 12px 38px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(138, 106, 42, 0.35) !important;
    border-radius: 8px !important;
    color: #f5e6c8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}
.home-account-field input:focus,
.home-account-field select:focus {
    outline: none !important;
    border-color: rgba(93, 173, 226, 0.7) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.18), inset 0 1px 0 rgba(0, 0, 0, 0.3) !important;
}
.home-account-field input::placeholder { color: rgba(168, 143, 95, 0.55); }
.home-account-field select { cursor: pointer; appearance: none; -webkit-appearance: none; }

.home-account-submit {
    width: 100%;
    padding: 14px 18px !important;
    margin-top: 4px;
    background: linear-gradient(135deg, #c9a15c 0%, #8a6a2a 100%) !important;
    border: 1px solid #e8c87d !important;
    border-radius: 8px !important;
    color: #1a1208 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.4px !important;
    cursor: pointer;
    transition: all 0.25s !important;
    box-shadow: 0 4px 14px rgba(201, 161, 92, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.home-account-submit:hover {
    background: linear-gradient(135deg, #e8c87d 0%, #c9a15c 100%) !important;
    box-shadow: 0 6px 22px rgba(232, 200, 125, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1px);
}
.home-account-submit i { font-size: 13px; }

.home-account-forgot {
    display: block; text-align: center; margin-top: 4px;
    font-size: 11px; color: #a88f5f !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.home-account-forgot:hover { color: #e8c87d !important; }

/* Logged-in user variant ---------------------------------------------- */
.home-account-user {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 0 18px 0;
    border-bottom: 1px solid rgba(138, 106, 42, 0.2);
    margin-bottom: 14px;
}
.home-account-avatar {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(from 90deg, #5dade2, #c9a15c, #e8c87d, #5dade2);
    border-radius: 50%; padding: 2px;
    position: relative;
    box-shadow: 0 0 22px rgba(232, 200, 125, 0.25);
    margin-bottom: 8px;
}
.home-account-avatar i {
    width: 100%; height: 100%;
    background: radial-gradient(circle, #1a1208 0%, #0a0603 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #e8c87d;
    font-size: 26px;
}
.home-account-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 18px; font-weight: 800;
    color: #e8c87d;
    letter-spacing: 0.4px;
}
.home-account-sub { font-size: 11px; color: #a88f5f; letter-spacing: 0.4px; }

.home-account-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.home-account-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 14px 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(138, 106, 42, 0.3);
    border-radius: 8px;
    color: #d9c48f !important;
    text-decoration: none !important;
    font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: all 0.2s;
    text-align: center;
}
.home-account-tile i {
    font-size: 18px;
    color: #c9a15c;
    transition: all 0.2s;
}
.home-account-tile:hover {
    background: rgba(138, 106, 42, 0.18);
    border-color: rgba(232, 200, 125, 0.6);
    color: #f5e6c8 !important;
    transform: translateY(-2px);
}
.home-account-tile:hover i {
    color: #e8c87d;
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(232, 200, 125, 0.6);
}

/* =========================================================================
   Bottom-row cards (Top10 / Events / Market) — unify hover with Hero style.
   ========================================================================= */
.home-sidebar .home-panel {
    border-radius: 12px !important;
    height: 500px !important;
    max-height: 500px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(201, 161, 92, 0.12) !important;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s !important;
    position: relative !important;
    overflow: hidden !important;
}
.home-sidebar .home-panel::before {
    content: '';
    position: absolute; top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 161, 92, 0.4), transparent);
    pointer-events: none;
}
.home-sidebar .home-panel:hover {
    border-color: rgba(232, 200, 125, 0.5) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(201, 161, 92, 0.15), inset 0 1px 0 rgba(232, 200, 125, 0.18) !important;
}
/* first panel (Top 10): keep header visible — content (player list) does its own overflow if needed */
.home-sidebar .home-panel:first-child {
    overflow: visible !important;
}
.home-sidebar .home-panel .home-panel-content {
    flex: 1;
    overflow-y: auto;
}

/* Account card on tablets */
@media (max-width: 1100px) {
    .home-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        width: calc(100% - 40px) !important;
    }
    .home-news-panel { grid-column: 1 !important; grid-row: 1 !important; height: auto !important; max-height: none !important; }
    .home-account-card { grid-column: 1 !important; grid-row: 2 !important; height: auto !important; max-height: none !important; }
    .home-sidebar { grid-row: 3 !important; grid-template-columns: 1fr !important; }
}
