/* ========== BASE & LAYOUT ========== */
*, *::before, *::after { box-sizing: border-box; }
html {
    max-width: 480px;
    margin: 0 auto;
    background-color: #111;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    padding-bottom: 65px; /* space for sticky bottom nav */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1c1c1c;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ========== OFFCANVAS ========== */
.offcanvas { --bs-offcanvas-width: 300px !important; }

/* ========== BUTTONS ========== */
.btn-masuk {
    font-weight: 600; font-size: 14px; padding: 8px 18px;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #2ed573, #1e9e4e);
    border-radius: 6px; border: none;
    transition: all 0.2s; display: inline-block;
}
.btn-masuk:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }

.btn-daftar {
    font-weight: 600; font-size: 14px; padding: 8px 18px;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #3498ff, #0071d9);
    border-radius: 6px; border: none;
    transition: all 0.2s; display: inline-block;
}
.btn-daftar:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }

.btn-daftar-2 {
    font-weight: 600; font-size: 12px; padding: 10px 18px;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #3498ff, #0071d9);
    border-radius: 8px; display: inline-block;
    transition: all 0.2s;
}
.btn-daftar-2:hover { opacity: 0.9; color: #fff; }

.btn-masuk-2 {
    font-weight: 600; font-size: 12px; padding: 10px 18px;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #2ed573, #1e9e4e);
    border-radius: 8px; display: inline-block;
    transition: all 0.2s;
}
.btn-masuk-2:hover { opacity: 0.9; color: #fff; }

.btn-promosi-2 {
    font-weight: 600; font-size: 12px; padding: 10px 18px;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #f79236, #e07422);
    border-radius: 8px; display: inline-block;
    transition: all 0.2s;
}
.btn-promosi-2:hover { opacity: 0.9; color: #fff; }

.btn-deposit {
    font-weight: 600; font-size: 14px; padding: 8px 18px;
    text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #2ed573, #139c44);
    border-radius: 6px; border: none;
    display: inline-block; transition: all 0.2s;
}
.btn-deposit:hover { opacity: 0.9; color: #fff; }

/* ========== LINK STYLES ========== */
.link-header {
    font-weight: 500; color: #fff; text-decoration: none;
    transition: opacity 0.2s;
}
.link-header:hover { color: #fff; opacity: 0.8; }

.link-header-2 {
    font-weight: 400; font-size: 11px; color: #ccc;
    text-decoration: none; transition: color 0.2s;
}
.link-header-2:hover { color: #fff; }

/* ========== TOP NAVBAR ========== */
.top-navbar {
    background-color: #181818 !important;
    padding: 8px 0;
}
.top-navbar .navbar-brand img {
    width: 120px;
    height: auto;
}
@media (max-width: 360px) {
    .top-navbar .navbar-brand img { width: 100px; }
    .btn-masuk, .btn-daftar { font-size: 12px; padding: 6px 12px; }
}

/* ========== NAV MENU BAR (orange) ========== */
.nav-menu-bar {
    background: linear-gradient(180deg, #f79236, #e07422);
    padding: 10px 0;
}
.nav-menu-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; text-decoration: none; color: #fff;
    font-weight: 700; font-size: 10px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-menu-item:hover { color: #fff; transform: scale(1.1); opacity: 0.9; }
.nav-menu-item i {
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
@media (max-width: 360px) {
    .nav-menu-item { font-size: 9px; }
    .nav-menu-item i { font-size: 15px; }
}

/* ========== OFFCANVAS SIDEBAR ========== */
.sidebar-menu {
    background-color: #1c1c1c; font-size: 15px;
}
.sidebar-grid-item {
    text-align: center; padding: 8px 0;
}
.sidebar-grid-item img {
    width: 38px; height: 38px; object-fit: contain;
}
.sidebar-grid-item .label {
    font-size: 12px; margin-top: 5px; color: #ccc;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 12px 15px 8px;
}
.section-header .title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 14px;
}
.section-header .title img { width: 28px; height: 28px; }
.section-header .see-all {
    font-size: 12px; color: #ccc; padding: 4px 12px;
    background-color: #181818; border-radius: 20px;
    cursor: pointer; transition: background 0.2s;
}
.section-header .see-all:hover { background-color: #2a2a2a; color: #fff; }

/* ========== PROVIDER GRID ========== */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; padding: 8px 15px 15px;
}
.provider-item {
    text-align: center; text-decoration: none; color: #ccc;
    font-size: 11px; font-weight: 400;
    transition: transform 0.2s;
}
.provider-item:hover { color: #fff; transform: scale(1.05); }
.provider-item img {
    width: 48px; height: 48px; object-fit: contain;
    background-color: #181818; border-radius: 50%;
    padding: 2px;
}
.provider-item .name { margin-top: 5px; }

@media (max-width: 360px) {
    .provider-grid { gap: 8px; padding: 6px 10px 12px; }
    .provider-item img { width: 42px; height: 42px; }
    .provider-item { font-size: 10px; }
}

/* ========== GAME CATEGORY ICONS (4-col) ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; padding: 12px 15px;
    text-align: center;
}
.category-item {
    text-decoration: none; color: #fff; font-size: 12px;
    font-weight: 500; transition: transform 0.2s;
}
.category-item:hover { transform: scale(1.05); color: #fff; }
.category-item img { width: 45px; height: 45px; object-fit: contain; }
.category-item .label { margin-top: 5px; }

/* ========== CTA BUTTONS ROW ========== */
.cta-row {
    display: flex; justify-content: center; gap: 10px;
    padding: 12px 15px; flex-wrap: wrap;
}
.cta-row a { flex: 1; text-align: center; min-width: 80px; }

/* ========== MARQUEE / ANNOUNCEMENT ========== */
.announcement-bar {
    background-color: #f79236; color: #fff;
    padding: 6px 12px; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
}
.announcement-bar i { flex-shrink: 0; }

/* ========== DUAL SECTION (Sports/Poker, Lotto/Fishing) ========== */
.dual-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; padding: 15px;
}
.dual-card {
    text-align: center;
}
.dual-card .card-title {
    display: flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 13px; margin-bottom: 10px;
}
.dual-card .card-title img { width: 28px; height: 28px; }
.dual-card .card-img {
    width: 100%; max-width: 180px; border-radius: 8px;
    transition: transform 0.2s;
}
.dual-card .card-img:hover { transform: scale(1.03); }

/* ========== CASINO ROW ========== */
.casino-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding: 8px 15px 15px;
}
.casino-card img {
    width: 100%; border-radius: 10px;
    background-color: #f79236; padding: 4px;
    transition: transform 0.2s;
}
.casino-card img:hover { transform: scale(1.03); }

/* ========== SECTION BG HELPERS ========== */
.bg-dark-1 { background-color: #1c1c1c; }
.bg-dark-2 { background-color: #181818; }
.bg-orange { background-color: #f79236; }

/* ========== BOTTOM STICKY NAV ========== */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    background-color: #181818;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 1050; padding: 6px 0;
}
.bottom-nav .row { margin: 0; }
.bottom-nav .nav-item-bottom {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #888; font-size: 11px;
    padding: 4px 0; transition: color 0.2s;
}
.bottom-nav .nav-item-bottom:hover { color: #fff; }
.bottom-nav .nav-item-bottom img {
    width: 22px; height: 22px; margin-bottom: 3px;
    opacity: 0.7; transition: opacity 0.2s;
}
.bottom-nav .nav-item-bottom:hover img { opacity: 1; }
.bottom-nav .nav-item-bottom i {
    font-size: 18px; margin-bottom: 3px;
}
.bottom-nav .nav-item-bottom.active { color: #3498ff; }
.bottom-nav .nav-item-bottom.active img { opacity: 1; }
.bottom-nav .balance-btn {
    background: linear-gradient(135deg, #3498ff, #0071d9);
    color: #fff; border-radius: 6px; padding: 4px 0;
}
.bottom-nav .balance-btn i { color: #fff; }

/* ========== FOOTER ========== */
.site-footer {
    background-color: #f79236; color: #fff;
    padding: 20px 15px; font-size: 12px; font-weight: 300;
    line-height: 1.7;
}
.site-footer h6 {
    font-weight: 700; font-size: 13px; margin-bottom: 10px;
}
.site-footer .footer-link {
    color: #fff; opacity: 0.85; margin-bottom: 6px;
    transition: opacity 0.2s; cursor: pointer;
}
.site-footer .footer-link:hover { opacity: 1; }
.site-footer .copyright {
    text-align: center; padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px; font-size: 11px; opacity: 0.8;
}
.site-footer .social-icon {
    font-size: 24px; color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.site-footer .social-icon:hover { color: #fff; }

/* ========== MODAL STYLING ========== */
.modal-content { border-radius: 12px; overflow: hidden; }
#login .modal-content { background: #fff; color: #212529; }
#login .modal-header {
    border-bottom: 1px solid #dee2e6; padding: 16px 20px;
}
#login .modal-title { font-weight: 700; color: #212529; font-size: 1.25rem; }
#login .modal-body { padding: 24px 20px; }
#login .input-group-text {
    background: #fff; color: #0082e2;
    border: 1px solid #dee2e6; font-size: 18px;
}
#login .form-control {
    background: #fff; color: #212529;
    border: 1px solid #dee2e6; font-size: 15px;
    padding: 12px 14px;
}
#login .form-control::placeholder { color: #999; }
#login .form-control:focus {
    border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
    background: #fff; color: #212529;
}
.btn-login-submit {
    display: block; width: 75%; max-width: 350px;
    margin: 10px auto 0; padding: 12px;
    background: #23c85d; color: #fff;
    border: none; border-radius: 8px;
    font-weight: 700; font-size: 16px;
    cursor: pointer; transition: all 0.2s;
}
.btn-login-submit:hover { background: #1ea84d; color: #fff; }
#login .login-footer {
    font-size: 13px; color: #555; text-align: center; margin-top: 18px;
}
#login .login-footer a {
    color: #198754; text-decoration: none; font-weight: 500;
}
#login .login-footer a:hover { text-decoration: underline; }

/* ========== FORM DARK STYLE (daftar/deposit) ========== */
.form-dark .form-label {
    font-size: 13px; color: #ccc; font-weight: 400; margin-bottom: 4px;
}
.form-dark .input-group-text {
    color: #fff; background-color: #1c1c1c;
    border: 1px solid #444; font-size: 13px;
}
.form-dark .form-control,
.form-dark .form-select {
    color: #fff; background-color: #1c1c1c;
    border: 1px solid #444; font-size: 12px;
}
.form-dark .form-control::placeholder { color: #777; }
.form-dark .form-control:focus,
.form-dark .form-select:focus {
    border-color: #3498ff; box-shadow: 0 0 0 2px rgba(52,152,255,0.15);
    background-color: #1c1c1c; color: #fff;
}
.form-dark .section-title {
    font-size: 14px; font-weight: 700; color: #f79236;
    margin: 18px 0 10px; padding-bottom: 6px;
    border-bottom: 1px solid #333;
}
.form-dark .hint-text {
    font-size: 11px; color: #888; padding: 8px 0; line-height: 1.5;
}

/* ========== CTA FULL WIDTH ========== */
.btn-full {
    display: block; width: 100%; text-align: center;
    padding: 12px; border: none; border-radius: 8px;
    font-weight: 700; font-size: 14px; cursor: pointer;
    transition: all 0.2s;
}
.btn-full:hover { opacity: 0.9; transform: translateY(-1px); }

/* ========== SUCCESS MODAL ========== */
.success-modal .modal-content {
    background-color: #1c1c1c; color: #fff;
    border: 1px solid #23c85d; border-radius: 12px;
}
.success-modal .success-icon {
    font-size: 60px; color: #23c85d; margin-bottom: 10px;
}
.success-modal h4 { font-weight: 700; color: #23c85d; }
.success-modal p { font-size: 13px; color: #ccc; margin-top: 10px; }

/* ========== DEPOSIT TABS ========== */
.deposit-tabs {
    display: flex; gap: 0; padding: 10px 15px;
}
.deposit-tab {
    flex: 1; text-align: center; padding: 8px;
    font-size: 12px; font-weight: 600; color: #ccc;
    border-bottom: 2px solid transparent;
    cursor: pointer; transition: all 0.2s;
}
.deposit-tab:hover, .deposit-tab.active {
    color: #fff; border-bottom-color: #3498ff;
}
.deposit-tab i { margin-right: 4px; }

/* ========== RESPONSIVE ========== */
@media (min-width: 481px) {
    html { box-shadow: 0 0 30px rgba(0,0,0,0.5); }
}
