/* ========================================================================
   🎨 GLOBAL COLOR VARIABLES
   ======================================================================== */
:root {
    /* 🌈 MyQalbu Login Gradient (Figma Accurate) */
    --color-bg-top: #e6f0ff;
    --color-bg-bottom: #e7d9ff;

    /* 🔵 Primary Palette */
    --color-primary: #2d347e;
    --color-accent: #6a5acd;

    /* ⚫ Texts & Surfaces */
    --color-text-dark: #333333;
    --color-text-link: #2d347e;
    --color-input-bg: #ffffff;
    --color-placeholder: #a8a8a8;

    /* 🌿 Mutiara Hikmah Legacy Palette */
    /* --color-green-custom-1: #072f1a;
    --color-green-custom-2: #bbe6cff2;
    --color-green-custom-3: #072f1a;
    --color-green-custom-4: #7eaf94;
    --color-green-overlay-custom: #0a4c29; */

    /* 🎨 Accent Colors */
    --color-blue-custom: #1a55aa;
    --color-blue-2-custom: #79b3e6;
    --color-blue-3-custom: #79b3e66b;
    --color-purple-custom: #7182ff;
    --color-orange-custom: #e68402;
    --color-black-custom: #000000;
    --color-white-custom: #ffffff;

    /* ⚪ Background images */
    --bg-image: url("/images/bri/background/bg.png");
    /* --bg-login: url("/images/app/mutiarahikmah/background/login.jpg"); */
    --bg-primary: #1a55aa;
    --bg-secondary: #7182ff;
    --bg-accent: #dce6f2;

    /* 🩶 Text Shades */
    --text-primary: #ffffff;
    --text-secondary: #bed0e5;
}

/* =============================
   TOPBAR
   ============================= */
.home-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #2f3c7e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 auto !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.topbar-left h5 {
    font-weight: 600;
}

.topbar-left img {
    height: 28px;
    object-fit: contain;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.topbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffd54a;
    color: #1d2c61;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.topbar-login i {
    font-size: 14px;
    color: #1d2c61;
}

.topbar-coin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.topbar-coin .coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-coin .coin-icon i {
    font-size: 12px;
    color: #ffd54a;
}

.topbar-coin .coin-caret {
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.topbar-coin-menu {
    background: #23306b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
    min-width: 190px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.topbar-coin-menu .dropdown-item {
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    background: transparent;
}

.topbar-coin-menu .dropdown-item i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.topbar-coin-menu .dropdown-item:hover,
.topbar-coin-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.icon {
    position: relative;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.badge-dot {
    position: absolute;
    top: -3px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.topbar-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffd54a;
    color: #1d2c61;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.topbar-login i {
    font-size: 14px;
    color: #1d2c61;
}

.topbar-coin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.topbar-coin-toggle::after {
    display: none;
}

.topbar-coin .coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-coin .coin-icon i {
    font-size: 12px;
    color: #ffd54a;
}

.topbar-coin .coin-caret {
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.topbar-coin-menu {
    background: #23306b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
    min-width: 190px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.topbar-coin-menu .dropdown-item {
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    background: transparent;
}

.topbar-coin-menu .dropdown-item i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.topbar-coin-menu .dropdown-item:hover,
.topbar-coin-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===============================
   🌿 POWERED CONTAINER
=============================== */
.powered-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 6px 80px;
    border-top: none;
}

.powered-by-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.powered-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.powered-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.powered-top img {
    height: 24px;
}

.powered-links {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.powered-top a,
.powered-links a {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: 0.2s ease;
}

.powered-top a:hover,
.powered-links a:hover {
    color: #2f3c7e;
    text-decoration: underline;
}

.powered-top a::before {
    content: "|";
    margin: 0 6px;
    color: #aaa;
    font-weight: 400;
}

.powered-links a:not(:last-child)::after {
    content: "|";
    margin-left: 6px;
    color: #aaa;
    font-weight: 400;
}

@media (max-width: 576px) {
    .powered-container {
        padding: 10px 6px 70px;
    }

    .powered-text {
        font-size: 11px;
    }

    .powered-top img {
        height: 20px;
    }

    .powered-top a,
    .powered-links a {
        font-size: 11px;
    }

    .powered-top {
        gap: 4px;
    }

    .powered-links {
        gap: 4px;
    }
}

/* CONTACT MODAL */
.contact-modal {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: #2f3c7e;
    padding: 1.2rem 1.5rem;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
}

.modal-body {
    padding: 1.8rem;
}

.contact-box {
    text-align: center;
}

.contact-box h4 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #2f3c7e;
}

.contact-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: 1.5px solid #2f3c7e;
    background: linear-gradient(135deg, #2f3c7e, #1e2a5a);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp i {
    color: #25d366;
    font-size: 18px;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #3849a3, #1e2a5a);
    transform: scale(1.03);
    color: #fff;
    text-decoration: none;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: 0.2s;
}

.info-item:hover {
    transform: scale(1.03);
    text-decoration: none;
}

/* 🎧 MINI PLAYER GLOBAL */
.mini-player {
    position: fixed;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    height: 64px;
    background: #1d3c8b;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 200;
}

.mini-player.hidden {
    display: none;
}

.mini-thumbnail img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-info {
    flex: 1;
}

.mini-title {
    font-size: 13px;
    font-weight: 600;
}

.mini-ustadz {
    font-size: 11px;
    color: #c7d5ff;
}

.mini-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar {
    height: 3px;
    background: #ffa733;
    width: 0%;
}

.mini-controls i {
    font-size: 20px;
    color: white;
}

#pageContainer {
    opacity: 1;
    transition: opacity 0.3s ease;
}
#pageContainer.fade-out {
    opacity: 0;
}

/* ========================================================================
   🌄 GLOBAL BACKGROUND & BODY
   ======================================================================== */
body {
    background: linear-gradient(
        to bottom,
        var(--color-bg-top),
        var(--color-bg-bottom)
    );
    font-family: "Poppins", sans-serif;
    color: var(--color-text-dark);
    margin: 0;
    max-width: 480px;
    margin: 0 auto;
}

/* Optional background for login with image overlay */
.bg-custom-login {
    background-image: linear-gradient(
            rgba(230, 240, 255, 0.8),
            rgba(231, 217, 255, 0.8)
        ),
        var(--bg-login);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========================================================================
   🧭 NAVIGATION & LAYOUT
   ======================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

main {
    background-size: cover;
    background-repeat: no-repeat;
    min-height: auto;
    background-color: var(--color-green-custom-2) !important;
}

.main-content {
    padding-top: 20px;
    padding-bottom: 160px;
}

/* ========================================================================
   ✍️ TYPOGRAPHY
   ======================================================================== */
.text-small {
    font-size: 0.875rem;
}

.text-secondary-custom {
    color: var(--text-secondary);
}

.font-12 {
    font-size: 12px !important;
}
.font-14 {
    font-size: 14px !important;
}
.font-16 {
    font-size: 16px !important;
}
.font-18 {
    font-size: 18px !important;
}
.font-20 {
    font-size: 20px !important;
}
.font-24 {
    font-size: 24px !important;
}
.font-28 {
    font-size: 28px !important;
}

/* ========================================================================
   🔗 LINKS & TEXT COLORS
   ======================================================================== */
a {
    color: var(--color-text-link);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-gold {
    color: #ffd700;
}
.text-silver {
    color: #c0c0c0;
}
.text-bronze {
    color: #cd7f32;
}

/* ========================================================================
   🔘 BUTTONS
   ======================================================================== */
.btn-primary {
    background-color: var(--bg-primary) !important;
    border-color: var(--bg-primary) !important;
}

.btn-primary:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--bg-secondary) !important;
}

.btn-white-custom {
    background-color: var(--color-white-custom) !important;
    color: var(--color-blue-custom);
    font-weight: bold;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
}

.btn-base {
    background: #ffffff;
}

.btn-base:hover {
    background: var(--bg-primary);
}

/* 🌿 Green Custom Buttons (legacy) */
.btn-green-1-custom {
    background-color: var(--color-green-custom-1) !important;
    color: var(--color-white-custom) !important;
    font-weight: bold;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    transition: 0.3s ease;
}

.btn-green-1-custom:hover {
    background-color: var(--color-white-custom) !important;
    color: var(--color-green-custom-1) !important;
}

.btn-green-2-custom {
    background-color: var(--color-green-custom-2) !important;
    color: var(--color-green-custom-1) !important;
    font-weight: bold;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    transition: 0.3s ease;
}

.btn-green-2-custom:hover {
    background-color: var(--color-white-custom) !important;
    color: var(--color-green-custom-1) !important;
}

/* ========================================================================
   ⚫ BACKGROUND UTILITY CLASSES
   ======================================================================== */
.bg-primary-custom {
    background-color: var(--bg-primary);
}
.bg-secondary-custom {
    background-color: var(--bg-secondary);
}
.bg-blue-custom {
    background-color: var(--color-blue-custom) !important;
}
.bg-blue-2-custom {
    background-color: var(--color-blue-2-custom) !important;
}
.bg-purple-custom {
    background-color: var(--color-purple-custom) !important;
    opacity: 0.9;
}
.bg-orange-custom {
    background-color: var(--color-orange-custom) !important;
}
.bg-black-custom {
    background-color: var(--color-black-custom) !important;
}
.bg-white-custom {
    background-color: var(--color-white-custom) !important;
}
.bg-green-1-custom {
    background-color: var(--color-green-custom-1) !important;
}
.bg-green-2-custom {
    background-color: var(--color-green-custom-2) !important;
}
.bg-green-3-custom {
    background-color: var(--color-green-custom-3) !important;
}
.bg-green-4-custom {
    background-color: var(--color-green-custom-4) !important;
}

/* ========================================================================
   🟢 TEXT COLOR UTILITIES
   ======================================================================== */
.text-blue-custom {
    color: var(--color-blue-custom) !important;
}
.text-blue-2-custom {
    color: var(--color-blue-2-custom) !important;
}
.text-purple-custom {
    color: var(--color-purple-custom) !important;
}
.text-orange-custom {
    color: var(--color-orange-custom) !important;
}
.text-black-custom {
    color: var(--color-black-custom) !important;
}
.text-white-custom {
    color: var(--color-white-custom) !important;
}
.text-green-1-custom {
    color: var(--color-green-custom-1) !important;
}
.text-green-2-custom {
    color: var(--color-green-custom-2) !important;
}
.text-green-3-custom {
    color: var(--color-green-custom-3) !important;
}
.text-green-4-custom {
    color: var(--color-green-custom-4) !important;
}

/* ========================================================================
   🧱 FOOTER
   ======================================================================== */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: var(--color-green-custom-1) !important;
    z-index: 999;
    padding: 16px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ========================================================================
   📱 RESPONSIVE
   ======================================================================== */
@media screen and (max-width: 360px) {
    img.navbar-logo {
        height: 35px;
        width: auto;
    }
}

.opacity-75 {
    opacity: 0.75 !important;
}
.opacity-50 {
    opacity: 0.5 !important;
}
