/* ============= RESET & BASE ============= */
html { scroll-behavior: smooth; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background-color: #fff; color: #333; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ============= LAYOUT ============= */
.container { width: 90%; max-width: 750px; margin: 0 auto; padding: 20px; }

/* ============= HEADER ============= */
.header {
    background: var(--theme-color, #09203f);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-top { width: 38px; height: 38px; border-radius: 8px; }
.header-text {
    flex-grow: 1;
    margin: 0 10px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.sub-badge {
    background: rgba(90, 218, 255, 0.2);
    border: 1px solid #5adaff;
    color: #5adaff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.sub-badge i { font-size: 11px; color: #ffeb3b; }
.telegram-top { color: #fff; font-size: 28px; }
.icon {
    display: block;
    padding: 4px 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
    border: none;
}
.icon:hover { background: rgba(255,255,255,0.25); }

/* ============= MENU DROPDOWN ============= */
.menu-container {
    display: none;
    background: linear-gradient(to top, #d3d3d3 0%, #e0e0e0 26%, #efefef 48%, #d9d9d9 75%, #bcbcbc 100%);
    padding: 15px;
}
.menu-row { display: flex; justify-content: space-around; margin-bottom: 5px; }
.menu-item {
    background: linear-gradient(109.6deg, #1b1b4f 11.2%, #78c9f4 100.2%);
    color: #fff;
    padding: 8px 10px;
    margin: 4px;
    flex: 1;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s;
}
.menu-item:hover { transform: scale(1.05); }
.menu-item i { margin-right: 4px; }

/* ============= NAVBAR ============= */
.navbar {
    background-color: #f2f2f2;
    border-top: 1px solid #001e00;
    border-bottom: 2px solid #001e00;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}
.navbar::-webkit-scrollbar { display: none; }
.navbar a {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: #000;
    padding: 7px 10px;
    border-right: 2px solid #e5e4e2;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}
.navbar a:last-child { border-right: none; }
.navbar a.active, .navbar a:hover {
    background: linear-gradient(114.3deg, #137e39 .2%, #08415b 68.5%);
    color: #fff;
}
.navbar a i { margin-right: 3px; }

/* ============= BANNER ============= */
.main-banner { display: block; width: 100%; }
.main-banner img { width: 100%; height: auto; display: block; }

/* ============= CATEGORY BUTTONS ============= */
.category-buttons { display: flex; gap: 10px; justify-content: center; padding: 12px 10px; }
.category-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: 0.3s;
    background: var(--theme-color, #09203f);
    border: none;
    cursor: pointer;
}
.category-btn:hover { transform: scale(1.03); opacity: 0.9; }
.category-btn i { margin-right: 5px; }

/* ============= GAME CARDS ============= */
.games-grid { padding: 10px; }

.game-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    transition: 0.2s;
    border: 1px solid #f0f0f0;
}
.game-box:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.12); }
.game-box-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.game-box-info { flex: 1; min-width: 0; }
.game-box-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: #222; }
.game-box-bonus {
    color: #A80000;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}
.game-box-bonus i { color: #A80000; }
.game-box-withdraw {
    color: #0a8a0a;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
.game-box-withdraw i { color: #0a8a0a; }
.game-box-action { flex-shrink: 0; }

.download-btn {
    display: inline-block;
    padding: 10px 16px;
    background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    text-align: center;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.download-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(84,104,255,0.4); }
.download-btn i { margin-right: 4px; }

/* ============= TELEGRAM / WHATSAPP CARDS ============= */
.group-card {
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f0f8ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 10px;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.group-card:hover { background: #e0efff; }
.group-card1 {
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f0fff0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 10px;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.group-card1:hover { background: #e0ffe0; }
.telegram-card { animation: telegram-border-animation 1.5s infinite; }
@keyframes telegram-border-animation {
    0% { border-color: transparent; }
    50% { border-color: #004f7a; }
    100% { border-color: transparent; }
}
.whatsapp-card { animation: whatsapp-border-animation 1.5s infinite; }
@keyframes whatsapp-border-animation {
    0% { border-color: transparent; }
    50% { border-color: #25d366; }
    100% { border-color: transparent; }
}
.group-card-left { display: flex; align-items: center; gap: 10px; }
.group-card-icon { font-size: 32px; }
.group-card-icon.tg { color: #0088cc; }
.group-card-icon.wa { color: #25d366; }
.join-text { font-weight: 700; color: #004f7a; font-size: 14px; }
.join-text1 { font-weight: 700; color: #006942; font-size: 14px; }
.join-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    border: none;
    cursor: pointer;
}
.join-btn.tg { background: #0088cc; }
.join-btn.wa { background: #25d366; }

/* ============= TABS ============= */
.tabs {
    display: flex;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.tabs .tab {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    background-color: #f2f2f2;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}
.tabs .tab:first-child { border-radius: 8px 0 0 8px; }
.tabs .tab:last-child { border-radius: 0 8px 8px 0; }
.tabs .tab.active {
    background: var(--theme-color, #09203f);
    color: #fff;
    border-color: var(--theme-color, #09203f);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============= FAQ ============= */
.faq-container { max-width: 700px; margin: 20px auto; padding: 10px; }
.faq-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 15px; color: #333; }
.faq-item { margin-bottom: 10px; }
.faq-question {
    position: relative;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #3f51b5, #5c6bc0);
    padding: 12px 35px 12px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.faq-question:hover { background: linear-gradient(135deg, #303f9f, #3f51b5); }
.faq-question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 18px;
    transition: 0.3s;
}
.faq-question.active::after { content: "\2212"; }
.faq-answer {
    font-size: 14px;
    color: #444;
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    line-height: 1.6;
}
.faq-answer.show { max-height: 500px; padding: 12px; }

/* ============= INFO TABLE ============= */
.info-table {
    border-collapse: collapse;
    width: 94%;
    margin: 15px auto;
    background: linear-gradient(to right, #e8e8e8, #f9f9f9);
    border-radius: 10px;
    overflow: hidden;
}
.info-table th {
    background-color: #f2f2f2;
    padding: 12px;
    text-align: left;
    font-size: 15px;
    color: red;
    border: 1px solid #ddd;
}
.info-table td {
    padding: 10px;
    font-size: 13px;
    border: 1px solid #ddd;
}
.info-table tr:nth-child(even) { background-color: #f9f9f9; }
.info-table a { color: #00f; font-weight: 700; }

/* ============= SEO CONTENT ============= */
.seo-content { padding: 10px 15px; margin-bottom: 80px; }
.seo-content h1 { font-size: 24px; color: #222; margin-bottom: 12px; }
.seo-content h2 {
    color: #cc0000;
    border-left: 6px solid #0000ff;
    border-bottom: 2px solid #dedede;
    padding: 10px 7px;
    margin-top: 20px;
    font-size: 18px;
}
.seo-content h3 { padding: 8px 0; color: #333; }
.seo-content p { font-size: 14px; line-height: 1.7; color: #444; padding: 6px 0; }
.seo-content ul { padding-left: 25px; margin: 8px 0; }
.seo-content li { font-size: 14px; padding: 3px 0; line-height: 1.6; }

/* ============= DISCLAIMER BOX ============= */
.red-disclaimer-box {
    background-color: #fff7f7;
    border: 2px solid #ff5733;
    border-radius: 5px;
    color: #333;
    font-size: 11px;
    line-height: 1.5;
    padding: 12px;
    margin: 15px 10px;
}
.red-disclaimer-box strong { color: #cc0000; }

/* ============= PAGE CONTENT ============= */
.page-content {
    padding: 15px;
    line-height: 1.8;
    margin-bottom: 80px;
}
.page-content h1 { font-size: 22px; color: #222; margin-bottom: 15px; }
.page-content h2 {
    color: #cc0000;
    border-left: 5px solid #0000ff;
    border-bottom: 2px solid #dedede;
    padding: 8px 7px;
    font-size: 17px;
    margin-top: 18px;
}
.page-content p { font-size: 14px; color: #444; margin-bottom: 10px; line-height: 1.7; }
.page-content a { color: #0066cc; font-weight: 600; }
.page-content a:hover { text-decoration: underline; }

/* ============= GAME DETAILS ============= */
.game-detail-header { text-align: center; padding: 25px 15px; }
.game-detail-img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: #f0f0f0;
}
.game-detail-title { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 8px; }
.game-detail-meta { display: flex; justify-content: center; gap: 25px; margin: 12px 0; flex-wrap: wrap; }
.game-detail-bonus {
    color: #A80000;
    font-weight: 700;
    font-size: 15px;
    display: flex; align-items: center; gap: 6px;
}
.game-detail-withdraw {
    color: #0a8a0a;
    font-weight: 700;
    font-size: 15px;
    display: flex; align-items: center; gap: 6px;
}
.game-detail-download { text-align: center; margin: 20px 0; }
.game-detail-download .download-btn {
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 25px;
}
.game-detail-description { padding: 15px; line-height: 1.8; font-size: 14px; color: #444; }
.related-games { padding: 15px; margin-bottom: 80px; }
.related-games h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #cc0000;
    border-left: 5px solid #0000ff;
    padding-left: 10px;
}

/* ============= FOOTER BAR ============= */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    max-width: 750px;
    width: 100%;
    background: linear-gradient(to top, #09203f 0%, #537895 100%);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.footer-bar a {
    color: #fff;
    text-decoration: none;
    padding: 8px 5px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    transition: 0.3s;
}
.footer-bar a:hover { background: rgba(255,255,255,0.1); }
.footer-bar a i { display: block; font-size: 18px; margin-bottom: 3px; }

/* ============= FLOATING BUTTON ============= */
.floating-telegram {
    position: fixed;
    right: 10px;
    bottom: 70px;
    z-index: 999;
    animation: float-bounce 2s ease-in-out infinite;
}
.floating-telegram i { font-size: 42px; color: #0088cc; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============= SCROLL TO TOP ============= */
.scroll-top {
    position: fixed;
    bottom: 70px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5adaff, #5468ff);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(84,104,255,0.4);
    transition: 0.3s;
}
.scroll-top:hover { transform: scale(1.1); }
.scroll-top.visible { display: flex; }

/* ============= 404 PAGE ============= */
.error-page {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 80px;
}
.error-page h1 { font-size: 72px; color: #5468ff; margin-bottom: 10px; }
.error-page h2 { font-size: 24px; color: #333; margin-bottom: 15px; }
.error-page p { font-size: 14px; color: #666; margin-bottom: 25px; }
.error-page .download-btn { padding: 12px 30px; font-size: 15px; }

/* ============= UTILITY ============= */
.center-text { text-align: center; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.small-center-text { text-align: center; font-size: .7rem; font-weight: 700; line-height: 1.5; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-inactive { background: #fce4ec; color: #c62828; }

/* ============= RESPONSIVE ============= */
@media only screen and (max-width: 768px) {
    .container { padding: 10px; }
    .header-text { font-size: 15px; }
    .footer-bar { width: 100%; }
}
@media only screen and (max-width: 480px) {
    .container { padding: 5px; }
    .menu-item { font-size: 10px; padding: 6px 4px; }
    .category-buttons { padding: 8px 5px; }
    .game-box { padding: 8px; gap: 8px; }
    .game-box-img { width: 60px; height: 60px; }
    .download-btn { padding: 8px 12px; font-size: 12px; }
}

/* ============= MOBILE-OPTIMIZED LARGE NOTIFICATION DIALOG ============= */
.notify-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 620px;
    background: linear-gradient(135deg, #09152b 0%, #1e1b4b 100%);
    border: 3px solid #5adaff;
    color: #fff;
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(90, 218, 255, 0.3);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: notifySlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes notifySlideUp {
    from { opacity: 0; transform: translate(-50%, 40px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.notify-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.notify-banner-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #5adaff;
    letter-spacing: 0.5px;
}
.notify-bell-icon {
    font-size: 32px;
    color: #ffeb3b;
    animation: ringBell 1.8s infinite;
}
@keyframes ringBell {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(15deg); }
    20%, 40% { transform: rotate(-15deg); }
    50% { transform: rotate(0); }
}
.notify-banner-body {
    font-size: 15px;
    line-height: 1.6;
    color: #f1f5f9;
    font-weight: 500;
}
.notify-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
.notify-btn-allow {
    flex: 1;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #003300;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.notify-btn-allow:active { transform: scale(0.98); }
.notify-btn-dismiss {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
@media only screen and (max-width: 480px) {
    .notify-banner {
        width: 96%;
        bottom: 15px;
        padding: 20px 20px;
        gap: 14px;
        border-radius: 16px;
    }
    .notify-banner-title { font-size: 16.5px; }
    .notify-bell-icon { font-size: 28px; }
    .notify-banner-body { font-size: 13.5px; }
    .notify-btn-allow { font-size: 15px; padding: 13px 16px; }
    .notify-btn-dismiss { font-size: 13px; padding: 13px 14px; }
}

