:root {
    --bottom-nav-height: 70px;
    --header-bar-height: 72px;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --secondary: #1e293b;
    --secondary-dark: #0f172a;
    --accent: #7c3aed;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --surface-muted: #f8fafc;
    --border: #e5e7eb;
    --text-main: #111827;
    --text-muted: #64748b;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 100%;
    max-width: 480px;
}

.header-left img {
    width: 95px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--surface-soft);
    text-decoration: none;
}

.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-muted);
    color: var(--secondary);
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

.coin-badge img {
    width: 18px;
    height: 18px;
}

.logo-link {
    text-decoration: none;
}

.logo-container {
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px !important;
    object-fit: contain;
}

.logo-text {
    width: 130px !important;
    object-fit: contain;
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #ffffff;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
    text-decoration: none;
}

.logout-btn:hover {
    opacity: 0.9;
}

.login-btn {
    background-color: var(--surface-soft);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
    text-decoration: none;
    font-weight: 700;
}

.login-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
    z-index: 150;
}

.bottom-nav a {
    text-decoration: none;
    color: #777777;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.25s ease;
    font-weight: 500;
}

.bottom-nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav i {
    font-size: 18px;
    margin-bottom: 4px;
    color: #9aa1a7;
}

.bottom-nav a.active i {
    color: var(--primary);
}

.nav-qris {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff !important;
    font-size: 26px;
    border: 4px solid #ffffff;
    z-index: 2;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
}

.nav-qris i {
    color: #ffffff;
    font-size: 30px;
}

.powered-container {
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 6px 12px 6px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin: 0 auto calc(var(--bottom-nav-height) + 16px) !important;
    margin-top: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powered-by-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.powered-by-wrapper img {
    vertical-align: middle;
    height: 44px;
    width: auto;
    opacity: 1;
    transform: translateY(3px);
}

.powered-by-wrapper .divider {
    color: #999999;
    margin: 0 8px;
    font-weight: 400;
    font-size: 14px;
}

.powered-by-wrapper a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease;
}

.powered-by-wrapper a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .powered-container {
        padding: 2px 10px 2px;
        font-size: 12px;
        margin: 0 auto calc(var(--bottom-nav-height) + 12px) !important;
        margin-top: -12px;
        line-height: 1.2;
    }

    .powered-by-wrapper {
        flex-direction: column;
        gap: 6px;
    }

    .powered-by-wrapper img {
        height: 40px;
        transform: none;
    }

    .powered-by-wrapper .divider {
        display: none;
    }
}

.content-wrapper {
    padding-bottom: 8px !important;
    padding-top: calc(var(--header-bar-height) + 8px) !important;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

footer {
    background: linear-gradient(
        200deg,
        var(--secondary) 0%,
        var(--secondary-dark) 100%
    );
    padding: 22px;
    text-align: left;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.22);
}

footer img {
    width: 95px;
    margin-bottom: 20px;
}

footer p {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 10px;
}

footer small {
    color: #94a3b8;
    font-size: 11px;
}

.ewallet-section {
    margin: 28px 0px;
    padding: 24px;
    background: var(--surface-soft);
    border: 1px solid #fed7aa;
    border-radius: 28px;
}

.ewallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.ewallet-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--secondary);
}

.badge-tercepat {
    background: #ffffff;
    color: var(--primary);
    padding: 6px 14px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
}

.ewallet-item {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.ewallet-item span {
    display: block;
    margin-top: 10px;
}

.ewallet-icon {
    width: 55px;
    height: 55px;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 700;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.12);
}

.ovo {
    background: linear-gradient(135deg, #8f3fff, #5f2dce);
    color: #ffffff;
}

.gopay {
    background: #4a90e2;
    color: #ffffff;
}

.dana {
    background: #3578e5;
    color: #ffffff;
}

.shopee {
    background: #ff7a00;
    color: #ffffff;
}

.linkaja {
    background: #e02121;
    color: #ffffff;
    font-size: 14px;
}

.flazz {
    background: #5b60d6;
    color: #ffffff;
}

.lainnya {
    background: #e5e7eb;
    color: #6b7280;
}

.no-nav-padding {
    padding-bottom: 20px !important;
}

.coin-dropdown {
    position: relative;
    display: inline-block;
}

.coin-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.coin-dropdown .account-menu-badge {
    min-width: 46px;
    height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
}

.coin-dropdown .account-menu-badge::after {
    display: none;
}

.coin-dropdown .account-menu-badge i {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.coin-dropdown .dropdown-menu {
    min-width: 160px;

    border-radius: 8px;
    padding: 0.3rem 0;

    background-color: var(--primary);
}

.coin-dropdown .dropdown-item {
    color: #fff;

    padding: 0.8rem 1rem;

    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.coin-dropdown .dropdown-item:hover {
    background-color: var(--primary);
}

.dropdown-item i {
    margin-right: 8px;
}

.logo-text {
    margin: 0;
    font-family: "ABeeZee", sans-serif;
    font-size: 22px;
    font-weight: 500;
}

#logoutModalLocal.modal,
#passwordModal.modal,
#gatchaSearchModal.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(6px);
}

#logoutModalLocal .modal-content,
#passwordModal .modal-content,
#gatchaSearchModal .modal-content {
    background: #ffffff;
    color: #111;
    width: 95%;
    max-width: 420px;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

#logoutModalLocal .modal-content {
    max-width: 390px;
    border: 1px solid rgba(245, 158, 11, 0.14);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

#logoutModalLocal .modal-header,
#passwordModal .modal-header,
#gatchaSearchModal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logoutModalLocal .modal-header h2,
#passwordModal .modal-header h2,
#gatchaSearchModal .modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

#logoutModalLocal .modal-body,
#passwordModal .modal-body,
#gatchaSearchModal .modal-body {
    padding: 1.5rem;
}

#logoutModalLocal .modal-body {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
}

#logoutModalLocal .modal-body label,
#passwordModal .modal-body label,
#gatchaSearchModal .modal-body label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

#logoutModalLocal .modal-body input,
#passwordModal .modal-body input,
#gatchaSearchModal .modal-body input {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 40px 10px 12px;
    color: #111;
    font-size: 0.9rem;
    margin-top: 6px;
    margin-bottom: 1rem;
}

#logoutModalLocal .modal-body input:focus,
#passwordModal .modal-body input:focus,
#gatchaSearchModal .modal-body input:focus {
    border-color: #cbd5e1;
    outline: none;
}

#logoutModalLocal .toggle-password,
#passwordModal .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    cursor: pointer;
}

#logoutModalLocal .input-group,
#passwordModal .input-group,
#gatchaSearchModal .input-group {
    position: relative;
}

#logoutModalLocal .modal-footer,
#passwordModal .modal-footer,
#gatchaSearchModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

#logoutModalLocal .btn-cancel,
#passwordModal .btn-cancel,
#gatchaSearchModal .btn-cancel {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

#logoutModalLocal .btn-cancel:hover,
#passwordModal .btn-cancel:hover,
#gatchaSearchModal .btn-cancel:hover {
    background: rgba(245, 158, 11, 0.08);
}

#logoutModalLocal .btn-save,
#passwordModal .btn-save,
#gatchaSearchModal .btn-save {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s;
}

#logoutModalLocal .btn-save:hover,
#passwordModal .btn-save:hover,
#gatchaSearchModal .btn-save:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

#logoutModalLocal .btn-cancel {
    min-width: 96px;
    border-color: var(--primary);
    color: var(--secondary);
    background: var(--surface-soft);
    font-weight: 700;
}

#logoutModalLocal .btn-cancel:hover {
    background: #ffedd5;
    border-color: var(--primary-hover);
    color: var(--secondary-dark);
    transform: translateY(-1px);
}

#logoutModalLocal .btn-save {
    min-width: 110px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

#logoutModalLocal .btn-save:hover {
    background: linear-gradient(
        135deg,
        var(--primary-hover) 0%,
        var(--secondary-dark) 100%
    );
    transform: translateY(-2px);
}

body.hide-nav .header-bar,
body.hide-nav .bottom-nav {
    display: none !important;
}

.app-powered-footer {
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding-bottom: 24px;
}

.app-powered-footer.has-bottom-nav {
    padding-bottom: 120px;
}

.app-powered-footer .app-powered-inner {
    pointer-events: auto;
    padding: 10px 12px;
    text-align: center;
}

.app-powered-footer span,
.app-powered-footer a {
    color: #212529;
    font-size: 12px;
}

.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffce00;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
}

/* Visibility fixes for VoucherBoss ID header buttons */
.header-right .login-btn,
.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.22);
}

.header-right .login-btn:hover,
.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #b45309);
    color: #ffffff !important;
    opacity: 1;
}

.header-right .search-btn,
.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--primary) !important;
}

.header-right .search-btn i,
.search-btn i {
    color: #ffffff !important;
}

.coin-dropdown .account-menu-badge,
.coin-badge {
    background: var(--surface-soft);
    border-color: #fed7aa;
    color: var(--secondary) !important;
}

.coin-dropdown .account-menu-badge i,
.coin-badge i {
    background: rgba(245, 158, 11, 0.14);
    color: var(--primary) !important;
}

.coin-dropdown .dropdown-menu {
    background-color: var(--secondary);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.coin-dropdown .dropdown-item {
    color: #ffffff !important;
}

.coin-dropdown .dropdown-item:hover {
    background-color: var(--primary);
    color: #ffffff !important;
}

.badge-tercepat,
.ewallet-header .badge-tercepat,
.ewallet-header a,
.ewallet-header button {
    color: var(--secondary) !important;
    border-color: #fed7aa;
}

.ewallet-header a i,
.ewallet-header button i,
.badge-tercepat i {
    color: var(--primary) !important;
}
