/**
 * Footer Reload Pulsa — panel horizontal, rapat & seimbang
 */
.rp-theme .footer-section.rp-footer {
    margin-top: 0;
    padding: 1.75rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(4, 9, 22, 0.4) 0%, #050b18 100%);
}

.rp-theme .footer-section.rp-footer .container {
    max-width: 1040px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.rp-theme .footer-section.rp-footer ul,
.rp-theme .footer-section.rp-footer li,
.rp-theme .footer-section.rp-footer p {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-theme .footer-section.rp-footer .padding-top,
.rp-theme .footer-section.rp-footer .padding-bottom {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Panel utama */
.rp-theme .rp-footer__panel {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(12, 20, 42, 0.75);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.rp-theme .rp-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.25rem;
}

/* Brand */
.rp-theme .rp-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    flex: 1 1 160px;
}

.rp-theme .rp-footer__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem;
    text-decoration: none !important;
}

.rp-theme .rp-footer__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rp-theme .rp-footer__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f2f6ff !important;
}

.rp-theme .rp-footer__tagline {
    margin: 0.12rem 0 0;
    font-size: 0.74rem;
    line-height: 1.3;
    color: #8fa3c8 !important;
}

/* Nav — grup pill */
.rp-theme .rp-footer__nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    flex: 0 1 auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.rp-theme .rp-footer__nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #b8cceb !important;
    text-decoration: none !important;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s ease, color 0.15s ease;
}

.rp-theme .rp-footer__nav a:last-child {
    border-right: none;
}

.rp-theme .rp-footer__nav a:hover {
    color: #fff !important;
    background: rgba(91, 141, 255, 0.18);
}

/* Sosial + CTA */
.rp-theme .rp-footer__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.rp-theme .rp-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rp-theme .rp-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #d0dff5 !important;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.rp-theme .rp-footer__icon:hover {
    color: #fff !important;
    background: rgba(91, 141, 255, 0.22);
}

.rp-theme .rp-footer__icon--wa:hover {
    background: rgba(37, 211, 102, 0.2) !important;
}

.rp-theme .rp-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #0a1228 !important;
    background: linear-gradient(180deg, #ffb04d 0%, #f5922e 100%);
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(245, 146, 46, 0.3);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.rp-theme .rp-footer__cta i {
    font-size: 0.7rem;
}

.rp-theme .rp-footer__cta:hover {
    color: #0a1228 !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Bar bawah */
.rp-theme .rp-footer__bottom {
    padding: 0.65rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
}

.rp-theme .rp-footer__legal {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #6f85a8 !important;
}

.rp-theme .rp-footer__legal a {
    color: #9eb8e8 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.rp-theme .rp-footer__legal a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Legacy */
.rp-theme .rp-footer .footer-top,
.rp-theme .rp-footer .footer-bottom,
.rp-theme .rp-footer .copyright,
.rp-theme .rp-footer .footer-link {
    display: contents;
}

.rp-theme .footer-section.rp-footer .logo img,
.rp-theme .footer-top .logo img {
    max-width: 2.75rem;
    height: auto;
}

/* Desktop: satu baris rapi */
@media (min-width: 768px) {
    .rp-theme .rp-footer__top {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .rp-theme .rp-footer__brand {
        flex: 0 0 auto;
        max-width: 200px;
    }

    .rp-theme .rp-footer__nav {
        flex: 1 1 auto;
        justify-content: center;
        margin: 0 auto;
    }

    .rp-theme .rp-footer__actions {
        flex: 0 0 auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .rp-theme .footer-section.rp-footer {
        padding: 1.35rem 0 1.25rem;
    }

    .rp-theme .rp-footer__top {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.85rem;
    }

    .rp-theme .rp-footer__brand {
        justify-content: center;
    }

    .rp-theme .rp-footer__brand-text {
        text-align: left;
    }

    .rp-theme .rp-footer__nav {
        width: 100%;
        justify-content: stretch;
    }

    .rp-theme .rp-footer__nav a {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.5rem 0.35rem;
        font-size: 0.76rem;
    }

    .rp-theme .rp-footer__actions {
        width: 100%;
        justify-content: center;
    }

    .rp-theme .rp-footer__bottom {
        padding: 0.6rem 0.85rem;
    }

    .rp-theme .rp-footer__legal {
        font-size: 0.68rem;
    }
}

@media (max-width: 400px) {
    .rp-theme .rp-footer__nav {
        flex-wrap: wrap;
        border-radius: 10px;
    }

    .rp-theme .rp-footer__nav a {
        flex: 1 1 30%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .rp-theme .rp-footer__nav a:nth-child(3),
    .rp-theme .rp-footer__nav a:nth-child(5) {
        border-right: none;
    }
}

/* Light theme */
html[data-theme="light"] .rp-theme .footer-section.rp-footer {
    background: linear-gradient(180deg, #f0f5fc 0%, #e4edf9 100%);
    border-top-color: rgba(59, 95, 196, 0.12);
}

html[data-theme="light"] .rp-theme .rp-footer__panel {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 95, 196, 0.15);
    box-shadow: 0 4px 20px rgba(30, 60, 120, 0.08);
}

html[data-theme="light"] .rp-theme .rp-footer__title {
    color: #152040 !important;
}

html[data-theme="light"] .rp-theme .rp-footer__tagline {
    color: #5a6f95 !important;
}

html[data-theme="light"] .rp-theme .rp-footer__nav {
    background: rgba(59, 95, 196, 0.06);
    border-color: rgba(59, 95, 196, 0.12);
}

html[data-theme="light"] .rp-theme .rp-footer__nav a {
    color: #2a4070 !important;
    border-right-color: rgba(59, 95, 196, 0.1);
}

html[data-theme="light"] .rp-theme .rp-footer__bottom {
    background: rgba(59, 95, 196, 0.05);
    border-top-color: rgba(59, 95, 196, 0.1);
}

html[data-theme="light"] .rp-theme .rp-footer__legal {
    color: #5a6f95 !important;
}
