:root {
    --bottom-nav-height: 70px;
    --header-bar-height: 72px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 100%;
    max-width: 480px;
    border-left: 2px solid rgba(255, 255, 255, 0.28);
    border-right: 2px solid rgba(255, 255, 255, 0.28);
}
.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: #e4003a;
    text-decoration: none;
}
.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e4003a, #b10028);
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.coin-badge img {
    width: 18px;
    height: 18px;
}
.logout-btn {
    background: linear-gradient(135deg, #ff1e3c, #ff5a6b);
    border: none;
    color: #fff;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
}
.logout-btn:hover {
    opacity: 0.9;
}

.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 #eeeeee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 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: #b10028;
    font-weight: 700;
}
.bottom-nav i {
    font-size: 18px;
    margin-bottom: 4px;
    color: #9aa1a7;
}
.bottom-nav a.active i {
    color: #ffffff;
    background: #b10028;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-bar {
    padding: 12px 16px;
}

/* =============================
   🌿 POWERED BY STYLE (RESPONSIVE)
   ============================= */
.powered-container {
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 10px 12px 10px;
    color: #111111;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin: 6px auto calc(var(--bottom-nav-height) + 6px) !important;
    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: #111111;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease;
}

.powered-by-wrapper a:hover {
    color: #b10028;
    text-decoration: underline;
}

/* 🌿 Tambahan: pastikan tampil rapi di layar kecil */
@media (max-width: 576px) {
    .powered-container {
        padding: 4px 10px 4px;
        font-size: 12px;
        margin: 4px auto calc(var(--bottom-nav-height) + 12px) !important;
        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;
}

/* Kontainer konten utama untuk layout mobile */
.mobile-container {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

/* FOOTER */
footer {
    background: linear-gradient(200deg, var(--primary) 0%, #400010 100%);
    padding: 22px;
    text-align: left;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}
footer img {
    width: 95px;
    margin-bottom: 20px;
}
footer p {
    font-size: 12px;
    color: #ffc6c6;
    line-height: 1.5;
    margin-bottom: 10px;
}
footer small {
    color: #ffbaba;
    font-size: 11px;
}
