* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b0f17;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Open Sans', sans-serif;
    color: #d6e6ff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}

.container {
    max-width: 900px;
    width: 100%;
    background: #121a26;
    padding: 1.5rem 1.5rem 2rem;
    border: 1px solid #1f4057;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1d3b4e;
    padding-bottom: 1rem;
    gap: 0.5rem;
}

.header h1 {
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: #3cc2ff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header h1 span {
    font-weight: 300;
    color: #68c5ff;
}

.badge {
    background: #0e2636;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #7fcbff;
    border: 1px solid #1f5777;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== TYPEWRITER ===== */
.typewriter-container {
    background: #0a1a28;
    border: 1px solid #1f5777;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    min-height: 54px;
    display: flex;
    align-items: center;
}

.typewriter-text {
    font-size: 1.05rem;
    color: #7fcbff;
    font-weight: 400;
    letter-spacing: 0.3px;
    min-height: 1.5rem;
    line-height: 1.4;
    word-break: break-word;
}

.typewriter-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1.1rem;
    background-color: #3cc2ff;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ===== BANNER SPONSOR ATAS ===== */
.banner-sponsor {
    background: #0a1a28;
    border: 2px dashed #1f5777;
    padding: 1.2rem 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.banner-sponsor .label {
    font-size: 0.65rem;
    color: #407799;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.banner-sponsor .banner-placeholder {
    font-size: 1.1rem;
    color: #5588aa;
    font-weight: 300;
}

.banner-sponsor img {
    max-width: 100%;
    height: auto;
    display: block;
}

.banner-sponsor a {
    display: block;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

/* ===== BEST GAME & REKOMENDASI ===== */
.featured-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.featured-box {
    background: #0a1a28;
    border: 1px solid #1f4a63;
    padding: 1rem;
}

.featured-box .title {
    font-size: 0.8rem;
    color: #407799;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-box .title .badge-best {
    background: #ffd700;
    color: #0b0f17;
    font-size: 0.55rem;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.featured-box .title .badge-recommend {
    background: #005f8c;
    color: white;
    font-size: 0.55rem;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.featured-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #1a3045;
}

.featured-item:last-child {
    border-bottom: none;
}

.featured-item .game-name {
    font-size: 0.85rem;
    color: #d6edff;
}

.featured-item .game-name a {
    color: #d6edff;
    text-decoration: none;
    transition: 0.15s;
}

.featured-item .game-name a:hover {
    color: #3cc2ff;
}

.featured-item .game-meta-small {
    font-size: 0.65rem;
    color: #6b9fc7;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-item .rank-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: #407799;
    margin-right: 0.4rem;
    min-width: 20px;
}

.featured-item .rank-number.gold {
    color: #ffd700;
}

.featured-item .rank-number.silver {
    color: #c0c0c0;
}

.featured-item .rank-number.bronze {
    color: #cd7f32;
}

.featured-item .featured-download-btn {
    background: #004466;
    border: 1px solid #1f8bcb;
    color: white;
    padding: 0.15rem 0.6rem;
    font-size: 0.6rem;
    text-decoration: none;
    transition: 0.15s;
    white-space: nowrap;
}

.featured-item .featured-download-btn:hover {
    background: #006b99;
    border-color: #5bc0ff;
}

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.7rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #152433;
    border: 1px solid #1a3d54;
    color: #b0d6f0;
    padding: 0.25rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: default;
    white-space: nowrap;
}

.filter-btn.active {
    background: #005f8c;
    border-color: #3cb0ff;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: #0b1a26;
    border: 1px solid #1d4a62;
    padding: 0.25rem 0.25rem 0.25rem 0.9rem;
    flex: 1 1 auto;
    min-width: 160px;
    max-width: 280px;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0.4rem 0.2rem;
    color: #d6ecff;
    font-size: 0.85rem;
    width: 100%;
    min-width: 80px;
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #5588a8;
    font-weight: 300;
    font-size: 0.8rem;
}

.search-box button {
    background: #00668f;
    border: none;
    color: white;
    padding: 0.3rem 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: default;
    border: 1px solid #1a8bc0;
    white-space: nowrap;
}

/* ===== DUKUNG SECTION ===== */
.support-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid #1d3b4e;
    border-bottom: 1px solid #1d3b4e;
    align-items: center;
}

.support-label {
    font-size: 0.75rem;
    color: #407799;
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-right: 0.3rem;
}

.support-btn {
    background: #0e2636;
    border: 1px solid #1f5777;
    color: #b0d6f0;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: 0.15s;
    white-space: nowrap;
}

.support-btn:hover {
    background: #1a3d5a;
    border-color: #3cb0ff;
    color: white;
}

.support-btn.donate {
    background: #004466;
    border-color: #1f8bcb;
    color: white;
}

.support-btn.donate:hover {
    background: #006b99;
}

.support-spacer {
    flex: 1;
    min-width: 10px;
}

/* ===== SHOP SECTION ===== */
.shop-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid #1d3b4e;
    border-bottom: 1px solid #1d3b4e;
    align-items: center;
}

.shop-label {
    font-size: 0.75rem;
    color: #407799;
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-right: 0.3rem;
}

.shop-btn {
    background: #0e2636;
    border: 1px solid #1f5777;
    color: #b0d6f0;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: 0.15s;
    white-space: nowrap;
}

.shop-btn:hover {
    background: #1a3d5a;
    border-color: #3cb0ff;
    color: white;
}

.shop-btn.topup {
    background: #1a4a33;
    border-color: #2a8f5a;
    color: #b0f0d0;
}

.shop-btn.topup:hover {
    background: #2a6b4a;
    border-color: #4acf8a;
}

.shop-btn.tiktok-affiliate {
    background: #1a1a2e;
    border-color: #00f2ea;
    color: #00f2ea;
}

.shop-btn.tiktok-affiliate:hover {
    background: #00f2ea;
    border-color: #00f2ea;
    color: #0b0f17;
}

.shop-spacer {
    flex: 1;
    min-width: 10px;
}

/* ===== GAME LIST ===== */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 1.2rem 0 1rem;
    min-height: 300px;
}

.game-item {
    background: #101e2d;
    padding: 0.8rem 1.2rem;
    border: 1px solid #1f4a63;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.game-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    flex: 2 1 180px;
}

.game-title {
    font-weight: 600;
    font-size: 1rem;
    color: #d6edff;
    letter-spacing: -0.1px;
}

.game-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #6b9fc7;
}

.game-meta span {
    background: #0f2333;
    padding: 0.05rem 0.6rem;
    border: 1px solid #1c4057;
}

.download-btn {
    background: #004466;
    border: 1px solid #1f8bcb;
    color: white;
    padding: 0.35rem 1.1rem;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: 0.15s;
    text-align: center;
}

.download-btn:hover {
    background: #006b99;
    border-color: #5bc0ff;
}

.download-btn small {
    font-weight: 300;
    opacity: 0.7;
    margin-left: 0.2rem;
    font-size: 0.65rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid #1d3b4e;
    border-bottom: 1px solid #1d3b4e;
}

.pagination button {
    background: #152433;
    border: 1px solid #1a3d54;
    color: #b0d6f0;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
    min-width: 40px;
}

.pagination button:hover:not(:disabled) {
    background: #1a3d5a;
    border-color: #3cb0ff;
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination button.active-page {
    background: #005f8c;
    border-color: #3cb0ff;
    color: white;
}

.pagination .page-info {
    font-size: 0.75rem;
    color: #6b9fc7;
    padding: 0 0.5rem;
}

.pagination.hidden {
    display: none;
}

/* ===== BANNER IKLAN BAWAH ===== */
.banner-ads-bottom {
    background: #0a1a28;
    border: 2px dashed #1f5777;
    padding: 1rem 1rem;
    text-align: center;
    margin-top: 1.2rem;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.banner-ads-bottom .label {
    font-size: 0.65rem;
    color: #407799;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.banner-ads-bottom .ads-placeholder {
    font-size: 0.95rem;
    color: #5588aa;
    font-weight: 300;
}

.banner-ads-bottom img {
    max-width: 100%;
    height: auto;
    display: block;
}

.banner-ads-bottom a {
    display: block;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

/* ===== SOCIAL MEDIA ===== */
.social-section {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #1b3d54;
    text-align: center;
}

.social-title {
    font-size: 0.8rem;
    color: #407799;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.2rem;
    background: #0e2636;
    border: 1px solid #1f5777;
    color: #b0d6f0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.15s;
    border-radius: 4px;
}

.social-btn:hover {
    background: #1a3d5a;
    border-color: #3cb0ff;
    color: white;
    transform: translateY(-2px);
}

.social-btn .social-icon {
    font-size: 1.1rem;
}

.social-btn.youtube:hover {
    background: #cc0000;
    border-color: #ff3333;
    color: white;
}

.social-btn.instagram:hover {
    background: #e4405f;
    border-color: #ff6b8a;
    color: white;
}

.social-btn.tiktok:hover {
    background: #000000;
    border-color: #00f2ea;
    color: #00f2ea;
}

.social-btn.twitter:hover {
    background: #1da1f2;
    border-color: #4db8f5;
    color: white;
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #4a9af5;
    color: white;
}

.social-btn.discord:hover {
    background: #5865f2;
    border-color: #7a87f5;
    color: white;
}

.social-btn.telegram:hover {
    background: #0088cc;
    border-color: #33aadd;
    color: white;
}

.social-btn.whatsapp:hover {
    background: #25d366;
    border-color: #4ade80;
    color: #0b0f17;
}

/* ===== FOOTER ===== */
.footer-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #407799;
    border-top: none;
    padding-top: 0.5rem;
    letter-spacing: 0.2px;
}

.footer-note i {
    font-style: normal;
    background: #0e2335;
    padding: 0.05rem 0.7rem;
    border: 1px solid #1d4d69;
    font-size: 0.7rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 1.2rem 1.2rem 1.5rem;
    }
    .header h1 {
        font-size: 1.5rem;
    }
    .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
    }
    .typewriter-text {
        font-size: 0.95rem;
    }
    .banner-sponsor {
        padding: 1rem 0.8rem;
        min-height: 90px;
    }
    .banner-sponsor .banner-placeholder {
        font-size: 0.95rem;
    }
    .search-box {
        min-width: 140px;
        max-width: 220px;
    }
    .support-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
    .shop-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
    .social-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.9rem;
    }
    .featured-section {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.4rem;
    }
    .container {
        padding: 0.7rem 0.7rem 1rem;
        border-width: 1px;
    }
    .header {
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
        gap: 0.3rem;
    }
    .header h1 {
        font-size: 1.2rem;
    }
    .badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.6rem;
    }
    .typewriter-container {
        padding: 0.5rem 0.8rem;
        min-height: 42px;
        margin-bottom: 0.8rem;
    }
    .typewriter-text {
        font-size: 0.8rem;
        min-height: 1.2rem;
    }
    .typewriter-text .cursor {
        height: 0.9rem;
    }
    .banner-sponsor {
        padding: 0.8rem 0.5rem;
        min-height: 65px;
        margin-bottom: 0.8rem;
    }
    .banner-sponsor .banner-placeholder {
        font-size: 0.75rem;
    }
    .banner-sponsor .label {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }
    .featured-section {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .featured-box {
        padding: 0.7rem;
    }
    .featured-item .game-name {
        font-size: 0.75rem;
    }
    .featured-item .game-meta-small {
        font-size: 0.55rem;
    }
    .featured-item .featured-download-btn {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    .filter-group {
        justify-content: center;
    }
    .filter-btn {
        font-size: 0.65rem;
        padding: 0.15rem 0.6rem;
    }
    .search-box {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        padding: 0.2rem 0.2rem 0.2rem 0.7rem;
    }
    .search-box input {
        font-size: 0.75rem;
        min-width: 60px;
        padding: 0.3rem 0.1rem;
    }
    .search-box input::placeholder {
        font-size: 0.7rem;
    }
    .search-box button {
        font-size: 0.65rem;
        padding: 0.2rem 0.7rem;
    }
    .support-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.5rem 0;
        margin-bottom: 0.8rem;
    }
    .support-label {
        width: 100%;
        justify-content: center;
        font-size: 0.65rem;
        margin-right: 0;
    }
    .support-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }
    .support-spacer {
        display: none;
    }
    .shop-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.5rem 0;
        margin-bottom: 0.8rem;
    }
    .shop-label {
        width: 100%;
        justify-content: center;
        font-size: 0.65rem;
        margin-right: 0;
    }
    .shop-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }
    .shop-spacer {
        display: none;
    }
    .game-list {
        gap: 0.5rem;
        margin: 0.8rem 0 0.8rem;
        min-height: 200px;
    }
    .game-item {
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 0.7rem;
        gap: 0.4rem;
    }
    .game-info {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.3rem;
        flex: unset;
    }
    .game-title {
        font-size: 0.85rem;
    }
    .game-meta {
        font-size: 0.6rem;
        gap: 0.3rem;
    }
    .game-meta span {
        padding: 0.05rem 0.4rem;
    }
    .download-btn {
        text-align: center;
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        width: 100%;
    }
    .download-btn small {
        font-size: 0.6rem;
    }
    .pagination {
        gap: 0.3rem;
        padding: 0.5rem 0;
        margin: 1rem 0 0.8rem;
    }
    .pagination button {
        font-size: 0.7rem;
        padding: 0.2rem 0.7rem;
        min-width: 32px;
    }
    .pagination .page-info {
        font-size: 0.65rem;
    }
    .banner-ads-bottom {
        padding: 0.6rem 0.5rem;
        min-height: 50px;
        margin-top: 0.8rem;
    }
    .banner-ads-bottom .ads-placeholder {
        font-size: 0.7rem;
    }
    .banner-ads-bottom .label {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }
    .social-section {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }
    .social-title {
        font-size: 0.65rem;
    }
    .social-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.7rem;
        gap: 0.2rem;
    }
    .social-btn .social-icon {
        font-size: 0.9rem;
    }
    .footer-note {
        font-size: 0.6rem;
        padding-top: 0.5rem;
        margin-top: 0.8rem;
    }
    .footer-note i {
        font-size: 0.6rem;
        padding: 0.05rem 0.5rem;
    }
}

@media (max-width: 370px) {
    .container {
        padding: 0.5rem 0.4rem 0.8rem;
    }
    .header h1 {
        font-size: 1rem;
    }
    .badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.4rem;
    }
    .typewriter-text {
        font-size: 0.7rem;
    }
    .typewriter-container {
        padding: 0.4rem 0.6rem;
        min-height: 36px;
    }
    .game-title {
        font-size: 0.75rem;
    }
    .game-meta {
        font-size: 0.55rem;
    }
    .download-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    .support-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    .shop-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    .banner-sponsor .banner-placeholder {
        font-size: 0.65rem;
    }
    .banner-ads-bottom .ads-placeholder {
        font-size: 0.6rem;
    }
    .filter-btn {
        font-size: 0.55rem;
        padding: 0.1rem 0.5rem;
    }
    .search-box input {
        font-size: 0.65rem;
    }
    .search-box button {
        font-size: 0.55rem;
        padding: 0.15rem 0.6rem;
    }
    .pagination button {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
        min-width: 28px;
    }
    .pagination .page-info {
        font-size: 0.55rem;
    }
    .social-btn {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
    }
    .social-btn .social-icon {
        font-size: 0.8rem;
    }
    .featured-item .game-name {
        font-size: 0.7rem;
    }
}