/* ===================================================================
   MODERN THEME - CHÚ BÉ RỒNG ONLINE (DRAGON BALL GAME PORTAL)
   Updated: 2026 - Clean, Modern, Bug-Free, Responsive
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 50% -20%, #3e1708 0%, #1e0b04 45%, #0a0402 100%) fixed;
    min-height: 100vh;
    color: #3b1704;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #e65100;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #bf360c;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
    vertical-align: middle;
}

/* Container Shell */
.body_body {
    max-width: 880px;
    margin: 18px auto 35px;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Hide outdated broken slice divs */
.bg_top, .left_top, .right_top, 
.left_b_bottom, .right_b_bottom, 
.bg_tree, .bg_noel, .bg_bottom, 
.foot_bg, .footer {
    display: none !important;
}

/* Age 18+ Warning Badge */
.div-12 { display: none !important; }

.div-12 img {
    height: 15px;
    width: auto;
}

/* Main Portal Card */
.body-content {
    background: linear-gradient(180deg, #ff7a1f 0%, #fa6005 30%, #eb5200 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.2);
    margin-bottom: 18px;
}

.bg-content2 {
    width: 100%;
}

/* Logo Header */
.a {
    height: auto !important;
    text-align: center;
    padding: 16px 0 12px;
    margin: 0 !important;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
}

.a img {
    margin-top: 0 !important;
    max-height: 95px;
    width: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.a img:hover {
    transform: scale(1.03);
}

/* Navigation Menu */
#top {
    width: 100%;
}

.link-more {
    width: 100%;
}

.menu2 {
    background: #461703 !important;
    border-top: 2px solid #2e0e01;
    border-bottom: 2px solid #2e0e01;
    padding: 6px 8px;
    margin: 0;
}

.menu2 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px 0;
    table-layout: fixed;
    margin: 0;
}

.menu td {
    height: 38px !important;
    background: linear-gradient(180deg, #b84313 0%, #872e09 100%) !important;
    border: 1.5px solid #e06c2c !important;
    border-radius: 9px !important;
    text-align: center;
    vertical-align: middle;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    padding: 0 !important;
    overflow: hidden;
}

.menu td a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.3px;
    padding: 0 4px;
}

.menu td:hover {
    background: linear-gradient(180deg, #db5c22 0%, #a2380c 100%) !important;
    border-color: #ffb169 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.menu td#selected, .menu td[id="selected"] {
    background: linear-gradient(180deg, #ff9f1a 0%, #d35400 100%) !important;
    border-color: #ffe600 !important;
    box-shadow: 0 0 14px rgba(255, 200, 0, 0.55), 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}

.menu td#selected a {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Banner */
.bg_top_22 {
    margin: 0;
    width: 100%;
    overflow: hidden;
    border-bottom: 2px solid #6b2404;
}

.bg_top_22 img {
    display: block;
    width: 100%;
    height: auto;
}

/* Main Body Area */
div.body {
    background: linear-gradient(180deg, #ffcf87 0%, #ffba5d 100%) !important;
    padding: 16px 14px 22px !important;
    color: #3b1704;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) inset;
}

/* Content Boxes (Giới thiệu, Hướng dẫn...) */
.bg-content {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(130, 52, 20, 0.22) !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    color: #3d1b06 !important;
}

.bg-content .title {
    border-bottom: 2px solid rgba(168, 35, 3, 0.25) !important;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.bg-content .title h4 {
    margin: 0;
    color: #a82303 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-content .content {
    padding: 2px 0;
    font-size: 13.5px;
    line-height: 1.65;
}

.bg-content .content-p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #b33900;
    margin-top: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.4px;
}

/* Modern Download Section Grid */
.download-section {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(130, 52, 20, 0.25);
    border-radius: 14px;
    padding: 16px 14px;
    margin: 12px auto;
}

.download-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #8b1f00;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
    justify-content: center;
}

.dl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fdf5ec 100%);
    border: 1.5px solid rgba(175, 75, 25, 0.3);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7e1a, #eb5200);
}

.dl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    border-color: #ff7e1a;
}

.dl-card img.dl-icon {
    height: 36px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.25s ease;
}

.dl-card:hover img.dl-icon {
    transform: scale(1.1);
}

.dl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.dl-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #7a1d00;
}

.dl-ver {
    font-size: 10.5px;
    color: #6d4c3d;
    font-weight: 600;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff5e36 0%, #e02800 100%);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(224, 40, 0, 0.35);
    transition: all 0.2s ease;
}

.dl-card:hover .dl-btn {
    box-shadow: 0 3px 10px rgba(224, 40, 0, 0.55);
    filter: brightness(1.1);
}

/* Modern Footer */
.copyright {
    margin: 20px auto 10px;
    padding: 16px 20px;
    text-align: center;
    color: #ffd8b8;
    font-size: 12px;
    line-height: 1.6 !important;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 175, 77, 0.2);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.copyright p {
    margin: 0 0 6px;
    color: #e6b896;
}

.copyright a {
    color: #ff9f43;
    font-weight: 700;
}

.copyright a:hover {
    color: #ffd699;
    text-decoration: underline;
}

/* Back to Top button */
#backTop {
    bottom: 25px !important;
    right: 25px !important;
    transition: all 0.3s ease;
}

#backTopimg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.25s ease;
}

#backTopimg:hover {
    transform: scale(1.18);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .body_body {
        margin: 10px auto;
        padding: 0 6px;
    }
    .menu td {
        height: 32px !important;
    }
    .menu td a {
        font-size: 11.5px !important;
    }
    .download-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===================================================================
   FLOATING SIDEBARS - DRAGON BALL PORTAL HIGHLIGHTS (2 BÊN VIỀN)
   =================================================================== */
.side-banner {
    position: fixed;
    top: 170px;
    width: 155px;
    z-index: 90;
    transition: all 0.3s ease;
}

.side-banner-left {
    left: max(15px, calc(50% - 440px - 175px));
}

.side-banner-right {
    right: max(15px, calc(50% - 440px - 175px));
}

.side-banner-left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 300px;
    top: -20px;
    left: -20px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

.side-banner-right::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 300px;
    top: -20px;
    right: -20px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

.side-banner-inner {
    background: rgba(24, 10, 4, 0.88);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-radius: 14px;
    padding: 12px 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.side-banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.35);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.side-banner-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.side-btn i {
    font-size: 14px;
    flex-shrink: 0;
}

.side-btn-download {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a0b02 !important;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}
.side-btn-download:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
}

.side-btn-zalo {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd !important;
}
.side-btn-zalo:hover {
    background: #2563eb;
    color: #fff !important;
    transform: translateY(-2px);
}

.side-btn-guide {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a !important;
}
.side-btn-guide:hover {
    background: rgba(245, 158, 11, 0.28);
    transform: translateY(-2px);
}

.side-btn-reg {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7 !important;
}
.side-btn-reg:hover {
    background: #10b981;
    color: #fff !important;
    transform: translateY(-2px);
}

.side-btn-recharge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
    animation: sidePulse 2s infinite ease-in-out;
}
.side-btn-recharge:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}

@keyframes sidePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 30px rgba(16, 185, 129, 0.4); }
}

.side-btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a0b02 !important;
}
.side-btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
}

.side-btn-history {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe !important;
}
.side-btn-history:hover {
    background: #6366f1;
    color: #fff !important;
    transform: translateY(-2px);
}

.side-btn-ranking {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a !important;
}
.side-btn-ranking:hover {
    background: #f59e0b;
    color: #1a0b02 !important;
    transform: translateY(-2px);
}

.side-banner-footer {
    font-size: 10px;
    font-weight: 700;
    color: #c9baa8;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
}

@media (max-width: 1260px) {
    .side-banner {
        display: none !important;
    }
}
