/**
 * HeavenKO-inspired Blood & Gold skin for RogACS KO panel
 * Overlay on existing Bootstrap + style.css — does not replace backend.
 */
:root {
    --hk-bg: #050505;
    --hk-bg-mid: #1f0a0a;
    --hk-surface: #0f0f0f;
    --hk-surface-2: #111;
    --hk-border: #333;
    --hk-blood: #8a1c1c;
    --hk-blood-deep: #4a0505;
    --hk-gold: #cba163;
    --hk-gold-bright: #ffa000;
    --hk-text: #e0e0e0;
    --hk-muted: #888;
    --hk-silver: #b0bec5;
}

html body.landing,
html body {
    background-color: #050505 !important;
    background-image: radial-gradient(circle at 50% 0%, #1f0a0a 0%, #050505 60%, #000000 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    color: var(--hk-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* —— HeavenKO top-menu (tek bar) —— */
.top-menu {
    background: linear-gradient(to bottom, #1a1a1a, #050505);
    border-bottom: 3px solid var(--hk-blood);
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1000;
}
.top-menu > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
}
.top-menu .nav-brand {
    flex-shrink: 0;
    padding: 8px 0;
}
.top-menu .nav-brand img {
    max-height: 45px;
    width: auto;
    display: block;
}
.top-menu .menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}
.top-menu .menu-list > li { position: relative; }
.top-menu .menu-user > li.has-dropdown { position: relative; }
.top-menu .menu-list > li > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 12px;
    color: var(--hk-silver);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.4px;
    border-right: 1px solid rgba(255,255,255,0.03);
    border-left: 1px solid rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.top-menu .menu-list > li > a i { color: #666; font-size: 13px; transition: 0.3s; }
.top-menu .menu-list > li > a:hover {
    color: #fff;
    background: linear-gradient(to bottom, var(--hk-blood) 0%, var(--hk-blood-deep) 100%);
    text-shadow: 0 0 10px rgba(255,50,50,0.45);
}
.top-menu .menu-list > li > a:hover i { color: #f1c40f; }
.top-menu .menu-pus > a { color: var(--hk-gold) !important; }
.top-menu .menu-epin > a { color: #f1c40f !important; }
.top-menu .has-dropdown > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #0e0e0e;
    border: 1px solid #333;
    border-top: 2px solid var(--hk-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.9);
    z-index: 1100;
    flex-direction: column;
}
.top-menu .has-dropdown:hover > .dropdown { display: flex; }
.top-menu .menu-user .has-dropdown > .dropdown {
    left: auto !important;
    right: 0 !important;
}
.top-menu .dropdown li a {
    display: block;
    padding: 11px 18px;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid #1a1a1a;
    background: transparent;
}
.top-menu .dropdown li a:hover {
    color: var(--hk-gold);
    background: #1a1a1a;
    padding-left: 24px;
    border-left: 3px solid var(--hk-gold);
}
.top-menu .menu-user {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.top-menu .user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px solid #333;
    letter-spacing: 0.5px;
}
.top-menu .user-btn.login {
    background: linear-gradient(to bottom, #222, #111);
    color: #eee !important;
}
.top-menu .user-btn.register {
    background: linear-gradient(to bottom, var(--hk-blood), var(--hk-blood-deep));
    border-color: #5c1010;
    color: #fff !important;
}
.top-menu .user-btn:hover {
    filter: brightness(1.15);
    color: #fff !important;
}
.top-menu .burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-left: 8px;
}
.top-menu .burger-btn span {
    display: block;
    height: 3px;
    background: var(--hk-gold);
    border-radius: 2px;
}
#mobileNavContent {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 3px solid var(--hk-blood);
    z-index: 1200;
    max-height: 80vh;
    overflow-y: auto;
}
#mobileNavContent.active { display: block; }
#mobileNavContent ul { list-style: none; margin: 0; padding: 8px 0; }
#mobileNavContent > ul > li > a {
    display: block;
    padding: 12px 18px;
    color: #ccc;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid #1a1a1a;
}
#mobileNavContent .dropdown {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #111;
}
#mobileNavContent .has-dropdown.open > .dropdown { display: block; }
#mobileNavContent .dropdown a {
    display: block;
    padding: 10px 28px;
    color: #999;
    text-decoration: none;
    font-size: 13px;
}
@media (max-width: 1100px) {
    .top-menu .menu-list,
    .top-menu .menu-user { display: none; }
    .top-menu .burger-btn { display: flex; }
}

/* Hide legacy dual header if any remnant loads */
.navbar-wrapper,
.header-navigation-wrapper { display: none !important; }
.container-fluid.ticker { display: none !important; }

/* —— Banner top 1920x90 —— */
.banner-top-wrapper {
    width: 100%;
    background: #000;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 999;
    border-bottom: 1px solid #333;
}
.banner-top-wrapper a { display: block; width: 100%; }
.banner-top-wrapper img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* —— Hero slider (HeavenKO) —— */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #000;
    border-bottom: 4px solid #8a1c1c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    margin-bottom: 30px;
}
.hero-slider .slider-wrapper { width: 100%; height: 100%; position: relative; }
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.hero-slider .slide.active { opacity: 1; z-index: 2; }
.hero-slider .slide-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}
.hero-slider .slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%),
                linear-gradient(to top, #000 0%, transparent 60%);
    z-index: 2;
}
.hero-slider .slide-content {
    position: absolute;
    bottom: 60px;
    left: 10%;
    z-index: 3;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
}
.hero-slider .slide-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-slider .slide-desc {
    font-size: 16px;
    color: #ddd;
    margin: 0 0 25px;
    line-height: 1.5;
}
.hero-slider .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(to bottom, #b71c1c, #8a1c1c);
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 4px;
    border: 1px solid #d32f2f;
    box-shadow: 0 0 15px rgba(183, 28, 28, 0.5);
    transition: 0.3s;
}
.hero-slider .slide-btn:hover {
    background: linear-gradient(to bottom, #cba163, #b68d4c);
    color: #000 !important;
    border-color: #f1c40f;
}
.hero-slider .slide-btn-wa {
    background: #46ec18 !important;
    border: 2px solid #46ec18 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(70, 236, 24, 0.35);
}
.hero-slider .slide-btn-wa i { color: #fff !important; }
.hero-slider .slide-btn-wa:hover {
    background: #46ec18 !important;
    border-color: #9dff7a !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(70, 236, 24, 0.35), 0 0 22px rgba(70, 236, 24, 0.75);
}
.hero-slider .slide-btn-wa:hover i { color: #fff !important; }
.hero-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
}
.hero-slider .slider-nav:hover { background: #b71c1c; border-color: #b71c1c; }
.hero-slider .prev-btn { left: 20px; }
.hero-slider .next-btn { right: 20px; }
.hero-slider .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-slider .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #000;
}
.hero-slider .dot.active {
    background: #cba163;
    box-shadow: 0 0 5px #cba163;
}

/* —— Center banner 1600x150 —— */
.banner-center-wrapper {
    max-width: 1600px;
    margin: 20px auto 30px auto;
    text-align: center;
    padding: 0;
}
.banner-center-wrapper img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: fill;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    display: block;
}
.banner-center-wrapper img:hover {
    transform: translateY(-2px);
    border-color: #555;
}

@media (max-width: 768px) {
    .banner-top-wrapper img { max-height: 60px; }
    .hero-slider { height: 300px; }
    .hero-slider .slide-content { left: 5%; bottom: 40px; text-align: center; width: 90%; }
    .hero-slider .slide-title { font-size: 24px; }
    .hero-slider .slide-desc { display: none; }
    .hero-slider .slider-nav { display: none; }
    .banner-center-wrapper { margin: 15px auto; }
}

/* —— Global panels (ko-panel + main-content-title) —— */
.left-column .ko-panel-card,
.mid-column .ko-panel-card,
.right-column .ko-panel-card,
.ko-panel-card.ko-kings-wrap,
.ko-panel-card.ko-event-schedule {
    position: relative;
    background: var(--hk-surface) !important;
    background-image: none !important;
    border: 1px solid var(--hk-border) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8) !important;
    overflow: visible !important;
}
.left-column .ko-panel-card::after,
.mid-column .ko-panel-card::after,
.right-column .ko-panel-card::after,
.ko-panel-card.ko-kings-wrap::after,
.ko-panel-card.ko-event-schedule::after,
.hk-widget::after {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    z-index: 10;
    pointer-events: none;
    background:
        linear-gradient(to right, var(--hk-gold) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--hk-gold) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--hk-gold) 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, var(--hk-gold) 2px, transparent 2px) 100% 0,
        linear-gradient(to right, var(--hk-gold) 2px, transparent 2px) 0 100%,
        linear-gradient(to top, var(--hk-gold) 2px, transparent 2px) 0 100%,
        linear-gradient(to left, var(--hk-gold) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--hk-gold) 2px, transparent 2px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(203, 161, 99, 0.2);
}

/* Mid-column rehber panelleri — altın köşe çerçevesi */
.ko-page-mid .hk-mining,
.ko-page-mid .hk-drop,
.ko-page-mid .hk-upgrade,
.ko-page-mid .hk-shozin,
.ko-page-mid .hk-narki,
.ko-page-mid .hk-gen,
.ko-page-mid .hk-quest,
.ko-page-mid .hk-pus {
    position: relative !important;
    overflow: visible !important;
}
.ko-page-mid .hk-mining::after,
.ko-page-mid .hk-drop::after,
.ko-page-mid .hk-upgrade::after,
.ko-page-mid .hk-shozin::after,
.ko-page-mid .hk-narki::after,
.ko-page-mid .hk-gen::after,
.ko-page-mid .hk-quest::after,
.ko-page-mid .hk-pus::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    pointer-events: none;
    background:
        linear-gradient(to right, var(--hk-gold) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--hk-gold) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--hk-gold) 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, var(--hk-gold) 2px, transparent 2px) 100% 0,
        linear-gradient(to right, var(--hk-gold) 2px, transparent 2px) 0 100%,
        linear-gradient(to top, var(--hk-gold) 2px, transparent 2px) 0 100%,
        linear-gradient(to left, var(--hk-gold) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--hk-gold) 2px, transparent 2px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(203, 161, 99, 0.2);
}
.ko-page-shell .ko-page-mid > .ranking-section.hk-mining-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-drop-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-upgrade-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-shozin-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-narki-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-gen-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-quest-section,
.ko-page-shell .ko-page-mid > .ranking-section.hk-pus-section {
    overflow: visible !important;
}

/* Sol aksiyon — HeavenKO: border yok, buton köşeye yapışık */
.left-column .ko-panel-card.ko-side-action {
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
.left-column .ko-panel-card.ko-side-action > .ko-panel-body {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}
.left-column .ko-panel-card.ko-side-action .widget-download-btn,
.left-column .ko-panel-card.ko-side-action .widget-giveaway-btn,
.left-column .ko-panel-card.ko-side-action .dual-widget-container {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
}
/* Köşeler butonun üstüne otursun */
.left-column .ko-panel-card.ko-side-action::after {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    box-shadow: none !important;
}

.main-content-title,
.left-column .ko-panel-card > .main-content-title,
.ko-panel-card > .main-content-title,
.hk-widget-title,
.hk-rank-wrap > .main-content-title {
    position: relative !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #cba163 !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: visible !important;
}
.main-content-title h3,
.hk-widget-title h3,
.hk-rank-wrap > .main-content-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    color: #cba163 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
}
.main-content-title h3 i,
.hk-widget-title h3 i,
.hk-rank-wrap > .main-content-title h3 i {
    color: #8a1c1c !important;
    margin-right: 8px;
    font-size: 16px !important;
    text-shadow: 0 0 5px rgba(138, 28, 28, 0.5);
    background: none !important;
}
.main-content-title::after,
.hk-widget-title::after,
.hk-rank-wrap > .main-content-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    border: none !important;
    background: linear-gradient(to right, #8a1c1c 0%, #8a1c1c 30%, transparent 100%) !important;
    background-image: linear-gradient(to right, #8a1c1c 0%, #8a1c1c 30%, transparent 100%) !important;
    box-shadow: none !important;
    z-index: 2;
    pointer-events: none;
}

.ko-panel-card.ko-kings-wrap > .main-content-title,
.ko-panel-card.ko-event-schedule > .main-content-title {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
.ko-panel-card.ko-kings-wrap > .ko-panel-body,
.ko-panel-card.ko-event-schedule > .ko-panel-body {
    border-color: var(--hk-border) !important;
    background: transparent !important;
}

/* —— Header / top bar —— */
.navbar-wrapper {
    background: linear-gradient(to bottom, #1a1a1a, #050505) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
}
.navbar-wrapper .logo img {
    max-height: 48px !important;
    width: auto !important;
}
.login-info .register-btn,
.login-info .login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    border: 1px solid var(--hk-border) !important;
    background: linear-gradient(to bottom, #222, #111) !important;
    color: var(--hk-silver) !important;
    text-decoration: none !important;
}
.login-info .register-btn:hover,
.login-info .login-btn:hover {
    background: linear-gradient(to bottom, var(--hk-blood) 0%, var(--hk-blood-deep) 100%) !important;
    color: #fff !important;
    border-color: var(--hk-blood) !important;
}
.login-info .register-btn { border-color: var(--hk-gold) !important; color: var(--hk-gold) !important; }
.login-info > i { color: var(--hk-muted); margin: 0 6px; }

/* —— Main navigation (Blood & Gold) —— */
.header-navigation-wrapper.navbar,
.navbar.header-navigation-wrapper {
    background: linear-gradient(to bottom, #1a1a1a, #050505) !important;
    border: none !important;
    border-bottom: 3px solid var(--hk-blood) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}
.header-menu-navigation > li > a {
    color: var(--hk-silver) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px;
    border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.3) !important;
    padding: 12px 14px !important;
    transition: all 0.3s ease !important;
}
.header-menu-navigation > li > a:hover,
.header-menu-navigation > li.open > a,
.header-menu-navigation > li.active > a {
    color: #fff !important;
    background: linear-gradient(to bottom, var(--hk-blood) 0%, var(--hk-blood-deep) 100%) !important;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.45);
}
.header-menu-navigation > li > a .header-menu-icon {
    color: #666 !important;
}
.header-menu-navigation > li > a:hover .header-menu-icon {
    color: #f1c40f !important;
}
.header-menu-navigation .dropdown-menu {
    background: #0e0e0e !important;
    border: 1px solid #333 !important;
    border-top: 2px solid var(--hk-gold) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9) !important;
}
.header-menu-navigation .dropdown-menu a {
    color: #999 !important;
    background: transparent !important;
}
.header-menu-navigation .dropdown-menu a:hover {
    color: var(--hk-gold) !important;
    background: #1a1a1a !important;
    border-left: 3px solid var(--hk-gold);
    padding-left: 18px !important;
}

/* Announcement ticker */
.container-fluid.ticker {
    background: #0a0a0a !important;
    border-bottom: 1px solid var(--hk-border) !important;
    border-top: 1px solid #1a1a1a !important;
}
.ticker .ticker-title {
    background: linear-gradient(to bottom, var(--hk-blood), var(--hk-blood-deep)) !important;
    color: #fff !important;
    font-weight: 800 !important;
}
.ticker .ticker-title i { color: var(--hk-gold) !important; }

/* Login / register / ranking pages — Heaven widget-title */
body .main-content-title,
.register-form-wrapper .main-content-title,
body .ranking-box-title,
body .ranking-sidebar-title {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-bottom: none !important;
    color: #cba163 !important;
}
body .main-content-title h3,
body .ranking-box-title h3,
body .ranking-sidebar-title h3 {
    color: #cba163 !important;
    font-size: 16px !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
}
body .main-content-title h3 i,
body .ranking-box-title i,
body .ranking-sidebar-title i {
    color: #8a1c1c !important;
    font-size: 16px !important;
    background: none !important;
}

/* Ranking theme pages share blood/gold surface */
.ranking-theme,
.rank-table-wrapper,
.table-responsive table {
    border-color: var(--hk-border) !important;
}
.btn-primary,
.button,
input[type="submit"].btn {
    background: linear-gradient(to bottom, var(--hk-blood), var(--hk-blood-deep)) !important;
    border-color: #5c1010 !important;
}
.btn-primary:hover,
.button:hover {
    background: linear-gradient(to bottom, #a32222, var(--hk-blood)) !important;
}

/* —— Hero slider —— */
#slider,
.hk-hero {
    border-bottom: 4px solid var(--hk-blood) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background: #000;
}
.hk-hero {
    position: relative;
    width: 100%;
    max-height: 420px;
}
.hk-hero img,
.hk-hero video {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

/* —— Main grid (banner-center 1600 ile aynı dış kenar; sol/sağ eşit, orta büyür) —— */
html body .banner-center-wrapper,
html body section.container.main,
html body .top-menu > .container,
html body .hk-footer > .container,
html body .copyright > .container {
    width: 100% !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
html body .banner-center-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html body section.container.main {
    margin-top: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.left-column,
.mid-column,
.right-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
/* Bootstrap clearfix ::before/::after flex item olmasın — yoksa 16px kenar boşluğu + orta daralır */
html body section.container.main::before,
html body section.container.main::after,
html body .ko-page-shell::before,
html body .ko-page-shell::after,
html body #ko-page-shell::before,
html body #ko-page-shell::after {
    content: none !important;
    display: none !important;
}
/* Sol / sağ eşit sabit, orta kalan alanı doldurur — banner ile aynı dış genişlik */
html body section.container.main,
html body .ko-page-shell,
html body #ko-page-shell {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    float: none !important;
    gap: 16px !important;
}
@media (min-width: 992px) {
    html body section.container.main > .left-column,
    html body section.container.main > .right-column,
    html body .ko-page-shell > .left-column,
    html body .ko-page-shell > .right-column,
    html body #ko-page-shell > #ko-global-left,
    html body #ko-page-shell > #ko-global-right,
    html body #ko-global-left,
    html body #ko-global-right {
        width: 310px !important;
        max-width: 310px !important;
        flex: 0 0 310px !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    html body section.container.main > .mid-column,
    html body .ko-page-shell > .mid-column,
    html body .ko-page-shell > .ko-page-mid,
    html body #ko-page-shell > #ko-page-mid,
    html body #ko-page-mid {
        width: auto !important;
        max-width: none !important;
        flex: 1 1 0 !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
}
@media (max-width: 991px) {
    html body section.container.main,
    html body .ko-page-shell,
    html body #ko-page-shell {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    html body section.container.main > .left-column,
    html body section.container.main > .right-column,
    html body section.container.main > .mid-column,
    html body #ko-global-left,
    html body #ko-global-right,
    html body #ko-page-mid {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* —— Subpage shell: keep left/right, page content in mid —— */
.ko-page-shell {
    clear: both;
}
.ko-page-shell .ko-page-mid {
    min-height: 200px;
    min-width: 0 !important;
    overflow-x: hidden;
}
.ko-page-shell .ko-page-mid > .ranking-section {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ko-page-shell .ko-page-mid > body,
.ko-page-shell .ko-page-mid > link {
    /* invalid nested tags ignored by browsers; neutralize if present */
}
.ko-page-shell .ko-page-mid .container.main-wrapper,
.ko-page-shell .ko-page-mid .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.ko-page-shell .ko-page-mid .content-wrapper.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}
.ko-page-shell .ko-page-mid .ranking-section {
    clear: none !important;
    overflow: hidden;
}
.ko-page-shell .ko-page-mid .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Align ranking boxes with server-wide-bar (kill Bootstrap 15px col gutters) */
.ko-page-shell .ko-page-mid .ranking-section .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.ko-page-mid > .server-wide-bar,
.mid-column > .server-wide-bar {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}
.ko-page-shell .ko-page-mid .login-box-container,
.ko-page-shell .ko-page-mid .register-box-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 20px !important;
}
/* Kill old theme bluish panel backgrounds (tpbg.jpg etc.) */
body.heaven-theme .content-wrapper,
body.ranking-page .content-wrapper,
body.heaven-theme .ranking-section,
body.ranking-page .ranking-section,
.ko-page-mid .content-wrapper,
.ko-page-mid .ranking-section {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    min-height: 0 !important;
}

.ko-page-mid .ranking-box,
.ko-page-mid .ranking-sidebar,
.ko-page-mid .ranking-stat-card,
body.heaven-theme .ranking-box,
body.ranking-page .ranking-box,
body.heaven-theme .ranking-sidebar,
body.ranking-page .ranking-sidebar {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}
.ko-page-shell .ranking-sidebar {
    margin-bottom: 16px;
}

/* —— Rankings (Heaven table) —— */
.hk-rank-wrap {
    position: relative;
    background: var(--hk-surface);
    border: 1px solid var(--hk-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 16px;
    overflow: visible;
}
.hk-rank-wrap .matches-tab-wrapper {
    border: none !important;
    background: #0a0a0a !important;
    margin: 0 !important;
    display: flex;
}
.hk-rank-wrap .matches-tab-wrapper > li {
    float: none !important;
    flex: 1;
}
.hk-rank-wrap .matches-tab-wrapper > li > a {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--hk-muted) !important;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding: 10px 8px !important;
}
.hk-rank-wrap .matches-tab-wrapper > li.active > a,
.hk-rank-wrap .matches-tab-wrapper > li > a:hover {
    color: var(--hk-gold) !important;
    background: rgba(138, 28, 28, 0.15) !important;
    border-bottom: 2px solid var(--hk-blood) !important;
}
.hk-rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--hk-silver);
}
.hk-rank-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #252525;
    vertical-align: middle;
    text-align: left;
}
.hk-rank-table td:first-child {
    text-align: center;
}
.hk-rank-table tr:last-child td { border-bottom: none; }
.hk-rank-table tr:hover td {
    background: rgba(183, 28, 28, 0.1);
    color: #fff;
}
.hk-rank-table tr.hk-rank-first td {
    background: rgba(183, 28, 28, 0.15);
}
.hk-rank-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #111;
    color: #777;
    border: 1px solid #333;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
}
.hk-rank-crown {
    color: #f1c40f;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 0 6px rgba(241, 196, 15, 0.45);
}
.hk-rank-table a {
    color: #e0e0e0;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
}
.hk-rank-table a:hover {
    color: var(--hk-gold-bright);
    text-shadow: 0 0 5px rgba(255, 160, 0, 0.4);
}
.hk-rank-table .hk-np {
    color: var(--hk-gold);
    font-weight: bold;
    font-family: Consolas, monospace;
    white-space: nowrap;
}
.hk-rank-more {
    display: block;
    text-align: center;
    padding: 8px 12px;
    margin: 0;
    background: #151515;
    border-top: 1px solid #222;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}
.hk-rank-more:hover {
    color: var(--hk-gold);
    background: #1a1a1a;
}

/* —— Server wide bar (HeavenKO) —— */
.server-wide-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #151515, #050505);
    border: 1px solid #333;
    border-top: 1px solid #cba163;
    border-bottom: 1px solid #cba163;
    padding: 15px 25px;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(203, 161, 99, 0.1);
    position: relative;
    overflow: hidden;
}
.server-wide-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.05);
}
.sw-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.sw-label {
    font-weight: 700;
    color: #888;
    font-size: 11px;
    letter-spacing: 1px;
}
.sw-value {
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
}
.time-val i { color: #cba163; }
.count-val {
    color: #f1c40f;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}
.sw-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}
.sw-status.online {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}
.sw-status.offline {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
@media (max-width: 768px) {
    .server-wide-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    .sw-item {
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px dashed #333;
        padding-bottom: 8px;
    }
    .sw-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* —— Legacy status cards (unused) —— */
.hk-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
}
.hk-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(to bottom, #1a1a1a, #0e0e0e);
    border: 1px solid #2a2a2a;
    border-left: 3px solid var(--hk-blood);
}
.hk-status-card .lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--hk-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hk-status-card .val {
    font-size: 14px;
    font-weight: 800;
    color: var(--hk-gold);
    font-family: Consolas, monospace;
}
.hk-status-card.is-online .val { color: #2ee67a; }
.hk-status-card .bar {
    flex: 1;
    height: 6px;
    margin: 0 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    overflow: hidden;
}
.hk-status-card .bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--hk-blood), var(--hk-gold));
}

/* —— Footer —— */
.site-footer.hk-footer {
    background: #080808;
    border-top: 3px solid var(--hk-blood);
    padding: 40px 0 20px;
    margin-top: 40px;
    color: var(--hk-muted);
    font-size: 13px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}
.hk-footer .footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.hk-footer .footer-col {
    flex: 1;
    min-width: 220px;
}
.hk-footer .footer-title {
    color: var(--hk-gold);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #333;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hk-footer .footer-title i {
    margin-right: 8px;
    color: var(--hk-blood);
}
.hk-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hk-footer .footer-links li { margin-bottom: 8px; }
.hk-footer .footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
}
.hk-footer .footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}
.hk-footer .footer-about {
    line-height: 1.6;
    color: #999;
}
.copyright {
    background: #050505 !important;
    border-top: 1px solid #1a1a1a !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 11;
}
.copyright p { color: #666 !important; }
.copyright a { color: #ae2007 !important; font-weight: 700; }

/* —— Subpages —— */
.register-form-wrapper,
.form-wrapper,
.tab-content-wrapper,
.single-post,
.user-cp-wrapper {
    background: var(--hk-surface) !important;
    border: 1px solid var(--hk-border) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 991px) {
    .hk-footer .footer-row { flex-direction: column; text-align: center; }
    .hk-footer .footer-col {
        border-bottom: 1px solid #1a1a1a;
        padding-bottom: 20px;
    }
    .hk-footer .footer-col:last-child { border-bottom: none; }
}
