﻿/* ═══════════════════════════════════════════════════════════
   Cửu Long Quan Long — Classic layout, theme mới
   Giữ cấu trúc gốc, chỉ override giao diện
   ═══════════════════════════════════════════════════════════ */

:root {
    --clbv-gold: #d4a84b;
    --clbv-gold-light: #f0d78c;
    --clbv-gold-dark: #8b6914;
    --clbv-red: #9b1c1c;
    --clbv-red-deep: #5c0f0f;
    --clbv-ink: #0c0e12;
    --clbv-panel: rgba(18, 22, 30, 0.92);
    --clbv-border: rgba(212, 168, 75, 0.35);
    --clbv-text: #e8e4dc;
    --clbv-muted: #9aa3b2;
    --clbv-radius: 8px;
    --clbv-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --clbv-nav-h: 56px;
    --clbv-hero-overlap: 28px;
}

/* ── Base ── */
body.clbv-home,
body.clbv-home .wrapper {
    font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
    color: var(--clbv-text);
}

body.clbv-home .wrapper {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(155, 28, 28, 0.35), transparent 55%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(212, 168, 75, 0.08), transparent 50%),
        linear-gradient(180deg, #12151c 0%, #0a0c10 40%, #0d1018 100%) !important;
    background-size: cover !important;
    min-height: 100vh;
}

/* ── Nav ── */
body.clbv-home .header .navbar-nav {
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.98), rgba(20, 16, 14, 0.95)) !important;
    border-bottom: 2px solid var(--clbv-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    height: var(--clbv-nav-h) !important;
    min-height: var(--clbv-nav-h) !important;
    padding: 0 !important;
}

body.clbv-home .header .navbar-nav li a.custom-color {
    color: var(--clbv-muted) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    padding: 0 28px !important;
    line-height: var(--clbv-nav-h) !important;
    position: relative;
    transition: color 0.25s;
}

body.clbv-home .header .navbar-nav li a.custom-color::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clbv-gold), transparent);
    transform: translateX(-50%);
    transition: width 0.25s;
}

body.clbv-home .header .navbar-nav li a.custom-color:hover {
    color: var(--clbv-gold-light) !important;
}

body.clbv-home .header .navbar-nav li a.custom-color:hover::after {
    width: 70%;
}

/* ── Hero banner full-width ── */
body.clbv-home .header--has-hero {
    height: auto !important;
    min-height: 0 !important;
    width: 100%;
    position: relative;
    overflow: visible;
    z-index: 1;
}

body.clbv-home .header--has-hero::before {
    display: none;
}

body.clbv-home .header .text {
    display: none !important;
}

/* Menu — khớp chiều cao hero phía dưới */
body.clbv-home .header--has-hero .navbar-nav {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--clbv-nav-h) !important;
    min-height: var(--clbv-nav-h) !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #0a0c10 0%, rgba(18, 21, 28, 0.98) 100%) !important;
    border-bottom: 2px solid var(--clbv-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(212, 168, 75, 0.15) inset !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.clbv-home .header--has-hero .navbar-nav li a.custom-color {
    color: var(--clbv-text) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.clbv-home .header--has-hero .navbar-nav li a.custom-color:hover {
    color: var(--clbv-gold-light) !important;
}

/* Hero full chiều cao — nằm trong luồng trang, không dùng spacer */
body.clbv-home .clbv-hero--fullscreen {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--clbv-nav-h));
    min-height: 420px;
    max-height: 900px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Nội dung bám ngay dưới hero */
body.clbv-home .clbv-page-content {
    position: relative;
    z-index: 10;
    margin-top: calc(-1 * var(--clbv-hero-overlap));
    padding-top: 4px;
    background:
        linear-gradient(180deg, rgba(10, 12, 16, 0.92) 0%, #0a0c10 40px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

body.clbv-home .clbv-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body.clbv-home .clbv-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

body.clbv-home .clbv-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

body.clbv-home .clbv-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.15) 45%,
            rgba(0, 0, 0, 0.35) 85%,
            rgba(0, 0, 0, 0.55) 100%),
        radial-gradient(ellipse 80% 60% at 50% 42%, rgba(155, 28, 28, 0.18), transparent 65%);
    pointer-events: none;
}

body.clbv-home .clbv-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 12px 20px 16px;
}

body.clbv-home .clbv-hero__title {
    margin: 0 0 8px;
    font-family: "Cinzel", "Be Vietnam Pro", serif;
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    color: var(--clbv-gold-light);
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
}

body.clbv-home .clbv-hero__tagline {
    margin: 0 0 20px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

body.clbv-home .clbv-hero__play {
    display: inline-block;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    transition: transform 0.25s;
}

body.clbv-home .clbv-hero__play img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(212, 168, 75, 0.6));
}

body.clbv-home .clbv-hero__play:hover {
    transform: scale(1.12) !important;
}

/* ── Hero / header (legacy) ── */
body.clbv-home .header {
    height: auto !important;
    min-height: 0;
}

/* ── 3 cột ── */
body.clbv-home .house {
    overflow: hidden;
    min-height: 400px;
    position: relative;
    margin-top: 0;
}

body.clbv-home .col-2 {
    padding-top: 24px !important;
}

body.clbv-home .col-3 {
    margin-top: 24px !important;
}

/* ── Auth panel (đăng ký / đăng nhập) ── */
body.clbv-home .clbv-auth-panel {
    background: var(--clbv-panel);
    border: 1px solid var(--clbv-border);
    border-radius: var(--clbv-radius);
    box-shadow: var(--clbv-shadow);
    overflow: hidden;
    margin: 0 !important;
}

body.clbv-home .clbv-auth-panel__head,
body.clbv-home .clbv-quick-panel__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(90deg, var(--clbv-red-deep), rgba(18, 22, 30, 0.95));
    border-bottom: 1px solid var(--clbv-border);
    color: var(--clbv-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

body.clbv-home .clbv-auth-panel__head i,
body.clbv-home .clbv-quick-panel__head i {
    color: var(--clbv-gold);
    font-size: 14px;
}

body.clbv-home .clbv-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    margin: 0 !important;
}

body.clbv-home .clbv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    font-family: inherit;
}

body.clbv-home .clbv-btn--primary {
    background: linear-gradient(135deg, var(--clbv-red) 0%, var(--clbv-gold-dark) 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(155, 28, 28, 0.4);
}

body.clbv-home .clbv-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
    color: #fff !important;
}

body.clbv-home .clbv-btn--outline {
    background: rgba(212, 168, 75, 0.08);
    border: 1px solid var(--clbv-border);
    color: var(--clbv-gold-light) !important;
}

body.clbv-home .clbv-btn--outline:hover {
    background: rgba(212, 168, 75, 0.18);
    border-color: var(--clbv-gold);
    transform: translateY(-2px);
    color: var(--clbv-gold-light) !important;
}

body.clbv-home .clbv-btn--copy {
    margin-top: 12px;
    background: rgba(212, 168, 75, 0.12);
    border: 1px solid var(--clbv-gold);
    color: var(--clbv-gold-light) !important;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

body.clbv-home .clbv-btn--copy:hover {
    background: var(--clbv-gold);
    color: var(--clbv-ink) !important;
}

/* ── Quick links panel ── */
body.clbv-home .clbv-quick-panel {
    margin: 14px 0 0 !important;
    width: 100% !important;
    float: none !important;
    background: var(--clbv-panel);
    border: 1px solid var(--clbv-border);
    border-radius: var(--clbv-radius);
    box-shadow: var(--clbv-shadow);
    overflow: hidden;
}

body.clbv-home .clbv-quick-panel .server-slider {
    padding: 10px 10px 12px;
}

body.clbv-home .col-1 .server-plan .server-slider .server-list li {
    height: auto !important;
    min-height: 44px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(212, 168, 75, 0.15) !important;
    border-radius: 6px !important;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

body.clbv-home .col-1 .server-plan .server-slider .server-list li:hover {
    background: linear-gradient(135deg, rgba(155, 28, 28, 0.35), rgba(212, 168, 75, 0.12)) !important;
    border-color: var(--clbv-gold) !important;
    transform: translateX(3px);
}

body.clbv-home .col-1 .server-plan .server-slider .server-list li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: var(--clbv-text) !important;
    line-height: 1.35 !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    font-weight: 500;
    white-space: normal !important;
    text-align: left !important;
}

body.clbv-home .col-1 .server-plan .server-slider .server-list li a i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    color: var(--clbv-gold);
    font-size: 13px;
}

body.clbv-home .col-1 .server-plan .server-slider .server-list li a:hover {
    color: var(--clbv-gold-light) !important;
}

body.clbv-home .col-1 {
    width: 240px;
}

/* ── Banner slider ── */
body.clbv-home .banner-slider {
    border-radius: var(--clbv-radius);
    overflow: hidden;
    border: 2px solid var(--clbv-border);
    box-shadow: var(--clbv-shadow);
    background: var(--clbv-ink);
}

body.clbv-home .banner-slider img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

body.clbv-home .banner-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    width: 10px;
    height: 10px;
    transition: transform 0.2s, background 0.2s;
}

body.clbv-home .banner-slider .swiper-pagination-bullet-active {
    background: var(--clbv-gold) !important;
    transform: scale(1.25);
}

/* ── Tin tức (col-2) ── */
body.clbv-home .col-2 .news {
    margin-top: 16px;
    height: auto !important;
    min-height: 260px;
    background: var(--clbv-panel);
    border: 1px solid var(--clbv-border);
    border-radius: var(--clbv-radius);
    box-shadow: var(--clbv-shadow);
    overflow: hidden;
}

body.clbv-home .news-tab {
    background: linear-gradient(90deg, var(--clbv-red-deep), rgba(18, 22, 30, 0.95)) !important;
    border-bottom: 1px solid var(--clbv-border) !important;
    padding: 0 8px;
}

body.clbv-home .news-tab li a {
    color: var(--clbv-muted) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0 18px !important;
    border-radius: 4px 4px 0 0;
    transition: color 0.2s, background 0.2s;
}

body.clbv-home .news-tab li a.active,
body.clbv-home .news-tab li a:hover {
    color: var(--clbv-gold-light) !important;
    background: rgba(212, 168, 75, 0.1);
}

body.clbv-home .news .tab-content {
    padding: 12px 16px 16px !important;
    max-height: 320px;
    overflow-y: auto;
}

body.clbv-home ul.news-list li {
    border-bottom: 1px solid rgba(212, 168, 75, 0.12) !important;
    padding: 8px 0 !important;
    transition: padding-left 0.2s;
}

body.clbv-home ul.news-list li:hover {
    padding-left: 6px !important;
}

body.clbv-home ul.news-list li.highlight .news-title,
body.clbv-home ul.news-list .news-title {
    color: var(--clbv-text) !important;
}

body.clbv-home ul.news-list li.highlight .news-title {
    color: var(--clbv-gold-light) !important;
}

body.clbv-home ul.news-list .news-title:hover,
body.clbv-home ul.news-list .news-title:hover span {
    color: var(--clbv-gold) !important;
}

body.clbv-home ul.news-list .news-time {
    color: var(--clbv-muted) !important;
    font-size: 12px !important;
}

body.clbv-home .news-empty {
    color: var(--clbv-muted);
    font-style: italic;
    padding: 16px;
    margin: 0;
}

/* ── Col-3 sidebar ── */
body.clbv-home .clbv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.clbv-home .clbv-download-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--clbv-red-deep) 0%, #1a1410 50%, var(--clbv-gold-dark) 100%);
    border: 2px solid var(--clbv-gold);
    border-radius: var(--clbv-radius);
    box-shadow: 0 0 28px rgba(212, 168, 75, 0.2), var(--clbv-shadow);
    text-decoration: none !important;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

body.clbv-home .clbv-download-btn__glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 168, 75, 0.25), transparent 55%);
    pointer-events: none;
    animation: clbv-pulse 3s ease-in-out infinite;
}

@keyframes clbv-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

body.clbv-home .clbv-download-btn__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--clbv-gold);
    border-radius: 50%;
    color: var(--clbv-gold-light);
    font-size: 20px;
}

body.clbv-home .clbv-download-btn__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.clbv-home .clbv-download-btn__text strong {
    color: var(--clbv-gold-light);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.clbv-home .clbv-download-btn__text small {
    color: var(--clbv-muted);
    font-size: 11px;
    font-weight: 500;
}

body.clbv-home .clbv-download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--clbv-gold-light);
    box-shadow: 0 0 40px rgba(212, 168, 75, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
}

body.clbv-home .clbv-sidebar-card {
    background: var(--clbv-panel);
    border: 1px solid var(--clbv-border);
    border-radius: var(--clbv-radius);
    box-shadow: var(--clbv-shadow);
    padding: 14px 14px 10px;
}

body.clbv-home .col-3 .taigame img {
    display: none;
}

body.clbv-home .col-3 .title-h2 {
    color: var(--clbv-gold) !important;
    background: none !important;
    font-size: 12px !important;
    letter-spacing: 2px;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--clbv-border);
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
}

body.clbv-home .col-3 .title-h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--clbv-gold);
}

body.clbv-home .col-3 .news-list {
    background: var(--clbv-panel);
    border: 1px solid var(--clbv-border);
    border-radius: var(--clbv-radius);
    padding: 12px 14px !important;
    margin: 12px 0 0 !important;
}

/* ── Bảng xếp hạng ── */
body.clbv-home .home-rankings {
    clear: both;
    padding: 20px 0 50px;
}

body.clbv-home .home-rankings .title-label {
    font-family: "Cinzel", "Be Vietnam Pro", serif;
    width: auto !important;
    max-width: 480px;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 16px 32px !important;
    margin: 0 auto 28px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--clbv-gold-light) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, var(--clbv-red-deep), rgba(18, 22, 30, 0.9)) !important;
    border: 2px solid var(--clbv-border);
    border-radius: var(--clbv-radius);
    box-shadow: var(--clbv-shadow);
    letter-spacing: 3px;
    text-transform: uppercase;
}

body.clbv-home .dacsac {
    width: 100% !important;
    max-width: 960px;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 24px 20px 28px !important;
    background: var(--clbv-panel) !important;
    border: 1px solid var(--clbv-border);
    border-radius: 12px;
    box-shadow: var(--clbv-shadow);
    position: relative;
}

body.clbv-home .dacsac::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--clbv-gold), transparent);
    border-radius: 12px 12px 0 0;
}

body.clbv-home .dacsac .dacsac-tab {
    margin: 0 0 20px !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.clbv-home .dacsac .dacsac-tab li a {
    width: auto !important;
    min-width: 120px;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 10px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--clbv-border) !important;
    border-radius: 6px !important;
    color: var(--clbv-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    transition: all 0.2s;
}

body.clbv-home .dacsac .dacsac-tab li a.active,
body.clbv-home .dacsac .dacsac-tab li a:hover {
    background: linear-gradient(180deg, var(--clbv-red), var(--clbv-red-deep)) !important;
    border-color: var(--clbv-gold) !important;
    color: var(--clbv-gold-light) !important;
    box-shadow: 0 4px 12px rgba(155, 28, 28, 0.4);
}

body.clbv-home .classic-rank-wrap {
    padding: 0 !important;
    max-height: 380px;
    overflow-y: auto;
}

body.clbv-home .classic-rank-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: var(--clbv-radius);
    overflow: hidden;
}

body.clbv-home .classic-rank-table thead th {
    background: linear-gradient(180deg, #2a2218, #1a1510);
    color: var(--clbv-gold-light);
    padding: 12px 14px;
    border: none;
    border-bottom: 2px solid var(--clbv-gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

body.clbv-home .classic-rank-table tbody tr {
    transition: background 0.15s;
}

body.clbv-home .classic-rank-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

body.clbv-home .classic-rank-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.07);
}

body.clbv-home .classic-rank-table tbody tr:hover {
    background: rgba(212, 168, 75, 0.12) !important;
}

body.clbv-home .classic-rank-table td {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid rgba(212, 168, 75, 0.08);
    color: var(--clbv-text);
}

body.clbv-home .classic-rank-table tbody tr:first-child td {
    color: var(--clbv-gold-light);
    font-weight: 600;
}

body.clbv-home .classic-rank-table__num {
    width: 52px;
    text-align: center;
    font-weight: 700;
    color: var(--clbv-gold);
}

body.clbv-home .classic-rank-table__val {
    text-align: right;
    font-weight: 700;
    color: #e8a87c;
}

body.clbv-home .classic-rank-table img.rank-medal {
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

body.clbv-home .classic-rank-more {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--clbv-gold);
    border-radius: 6px;
    color: var(--clbv-gold) !important;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

body.clbv-home .classic-rank-more:hover {
    background: var(--clbv-gold);
    color: var(--clbv-ink) !important;
}

/* ── Floating dock (giftcode, fanpage, ...) ── */
body.clbv-home .clbv-dock {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 100;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 10px 8px 10px 12px !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(12, 14, 18, 0.92) !important;
    border: 1px solid var(--clbv-border);
    border-right: none;
    border-radius: 14px 0 0 14px;
    backdrop-filter: blur(12px);
    box-shadow: -6px 0 32px rgba(0, 0, 0, 0.5);
}

body.clbv-home .clbv-dock__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
    min-width: 130px;
}

body.clbv-home .clbv-dock__item:hover {
    background: rgba(212, 168, 75, 0.12);
    transform: translateX(-4px);
}

body.clbv-home .clbv-dock__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    color: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

body.clbv-home .clbv-dock__item:hover .clbv-dock__icon {
    transform: scale(1.08);
}

body.clbv-home .clbv-dock__item--gift .clbv-dock__icon {
    background: linear-gradient(135deg, #c41e3a, #9b1c1c);
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.45);
    animation: clbv-gift-bounce 2.5s ease-in-out infinite;
}

@keyframes clbv-gift-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

body.clbv-home .clbv-dock__item--fb .clbv-dock__icon {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

body.clbv-home .clbv-dock__item--support .clbv-dock__icon {
    background: linear-gradient(135deg, #2ecc71, #1a9b52);
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.35);
}

body.clbv-home .clbv-dock__item--card .clbv-dock__icon {
    background: linear-gradient(135deg, var(--clbv-gold), var(--clbv-gold-dark));
    box-shadow: 0 4px 14px rgba(212, 168, 75, 0.4);
    color: var(--clbv-ink);
}

body.clbv-home .clbv-dock__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--clbv-text);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

body.clbv-home .clbv-dock__item:hover .clbv-dock__label {
    color: var(--clbv-gold-light);
}

/* ── Popup giftcode ── */
body.clbv-home .popup.popup-giftcode {
    display: none;
    position: fixed !important;
    width: min(420px, 92vw) !important;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 32px 28px 28px !important;
    background: var(--clbv-panel) !important;
    border: 2px solid var(--clbv-gold);
    border-radius: 16px;
    color: var(--clbv-text);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    text-align: center;
}

body.clbv-home .popup.popup-giftcode.active {
    display: block !important;
}

body.clbv-home .clbv-popup-giftcode__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clbv-red), var(--clbv-gold-dark));
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(155, 28, 28, 0.4);
}

body.clbv-home .popup.popup-giftcode .popup-title {
    color: var(--clbv-gold-light) !important;
    font-family: "Cinzel", "Be Vietnam Pro", serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    text-transform: none !important;
}

body.clbv-home .popup.popup-giftcode p {
    font-size: 13px;
    color: var(--clbv-muted);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 16px;
}

body.clbv-home .popup.popup-giftcode .value {
    display: block;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed var(--clbv-gold);
    border-radius: 8px;
    color: var(--clbv-gold-light) !important;
    font-size: 1.35rem !important;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    font-family: "Consolas", "Courier New", monospace;
}

body.clbv-home .clbv-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 75, 0.25);
    border-radius: 50%;
    color: var(--clbv-muted);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

body.clbv-home .clbv-popup-close:hover {
    background: var(--clbv-red);
    color: #fff;
    border-color: var(--clbv-red);
}

body.clbv-home .bgover {
    background: rgba(0, 0, 0, 0.75) !important;
}

/* ── Footer ── */
body.clbv-home .footer {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
    border-top: 1px solid var(--clbv-border);
    text-align: center;
    padding: 28px 16px 36px;
}

body.clbv-home .footer .address {
    color: var(--clbv-muted) !important;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ── Alert ── */
body.clbv-home .home-status-alert {
    max-width: 1200px;
    margin: 12px auto;
    padding: 12px 20px;
    background: rgba(155, 28, 28, 0.25);
    border: 1px solid var(--clbv-red);
    border-radius: var(--clbv-radius);
    color: #f5a8a8;
    text-align: center;
}

/* ── Scrollbar ── */
body.clbv-home .classic-rank-wrap::-webkit-scrollbar,
body.clbv-home .news .tab-content::-webkit-scrollbar {
    width: 5px;
}

body.clbv-home .classic-rank-wrap::-webkit-scrollbar-thumb,
body.clbv-home .news .tab-content::-webkit-scrollbar-thumb {
    background: var(--clbv-gold-dark);
    border-radius: 3px;
}

/* ── Responsive ── */
@media only screen and (max-width: 1200px) {
    body.clbv-home .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px;
    }

    body.clbv-home .col-1,
    body.clbv-home .col-2,
    body.clbv-home .col-3 {
        float: none !important;
        width: 100% !important;
        margin: 0 0 24px !important;
        padding: 0 !important;
    }

    body.clbv-home .col-2 {
        padding-top: 16px !important;
    }

    body.clbv-home .col-1 .server-plan,
    body.clbv-home .clbv-auth-panel {
        margin: 16px auto 0 !important;
        float: none;
        width: 100%;
        max-width: 400px;
    }

    body.clbv-home .clbv-dock,
    body.clbv-home .floating {
        display: none !important;
    }

    body.clbv-home .dacsac .dacsac-tab li a {
        min-width: 100px;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

@media only screen and (max-width: 768px) {
    body.clbv-home .header .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    body.clbv-home .header .navbar-nav li a.custom-color {
        padding: 0 14px !important;
        font-size: 13px !important;
        line-height: 44px !important;
    }

    body.clbv-home {
        --clbv-hero-overlap: 20px;
    }

    body.clbv-home .clbv-hero--fullscreen {
        min-height: 360px;
        max-height: none;
    }

    body.clbv-home .clbv-page-content {
        margin-top: calc(-1 * var(--clbv-hero-overlap));
        padding-top: 2px;
        border-radius: 12px 12px 0 0;
    }

    body.clbv-home .clbv-hero__inner {
        padding: 8px 16px 12px;
    }

    body.clbv-home .clbv-hero__title {
        font-size: 1.85rem;
        letter-spacing: 2px;
    }

    body.clbv-home .home-rankings .title-label {
        font-size: 20px !important;
        padding: 12px 20px !important;
    }
}
