/* ===============================
   PART 14
   Admin controlled bottom nav + footer
================================ */

.p14-add-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,122,0,0.18);
}

.p14-add-box h3 {
    color: #fff;
    margin-bottom: 14px;
}

.p14-bottom-admin-grid,
.p14-footer-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.p14-bottom-admin-card,
.p14-footer-admin-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(0,157,255,0.18);
}

.admin-form-grid.mini-grid {
    grid-template-columns: 1fr 1fr;
}

/* Footer Pro */
.p14-footer {
    margin-top: 46px;
    padding: 22px 18px 125px;
}

.p14-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0,157,255,0.22);
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.16), transparent 35%),
        radial-gradient(circle at bottom left, rgba(255,122,0,0.10), transparent 38%),
        linear-gradient(180deg, rgba(5,15,30,0.98), rgba(2,8,18,0.98));
    box-shadow: 0 24px 70px rgba(0,0,0,0.30);
}

.p14-footer-top {
    display: grid;
    grid-template-columns: 1.05fr 1.95fr;
    gap: 22px;
    padding: 28px;
}

.p14-footer-brand {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
}

.p14-footer-logo {
    width: 230px;
    max-width: 100%;
    margin-bottom: 16px;
}

.p14-footer-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.p14-footer-logo strong {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 6px;
}

.p14-footer-brand p {
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    margin-bottom: 16px;
}

.p14-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.p14-footer-badges span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    color: #dff4ff;
    font-size: 12px;
    font-weight: 800;
}

.p14-footer-wa {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366, #17b955);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(37,211,102,0.24);
}

.p14-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.p14-footer-col {
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.p14-footer-col h3 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 14px;
}

.p14-footer-col a {
    display: block;
    color: rgba(255,255,255,0.76);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.45;
    font-size: 14px;
    transition: 0.2s ease;
}

.p14-footer-col a:hover {
    color: #fff;
    transform: translateX(4px);
}

.p14-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
}

/* Mobile Bottom Menu */
.p14-bottom-nav {
    display: none;
}

/* Desktop responsive */
@media (max-width: 1100px) {
    .p14-footer-top {
        grid-template-columns: 1fr;
    }

    .p14-footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .p14-bottom-admin-grid,
    .p14-footer-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 96px;
    }

    .p14-footer {
        padding: 18px 14px 128px;
        margin-top: 34px;
    }

    .p14-footer-inner {
        border-radius: 24px;
    }

    .p14-footer-top {
        padding: 16px;
        gap: 14px;
    }

    .p14-footer-brand {
        padding: 16px;
        border-radius: 20px;
    }

    .p14-footer-logo {
        width: 190px;
        margin-bottom: 12px;
    }

    .p14-footer-brand p {
        font-size: 14px;
        line-height: 1.6;
    }

    .p14-footer-badges {
        gap: 8px;
    }

    .p14-footer-wa {
        width: 100%;
        justify-content: center;
    }

    .p14-footer-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .p14-footer-col {
        padding: 16px;
        border-radius: 18px;
    }

    .p14-footer-col h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .p14-footer-col a {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .p14-footer-bottom {
        padding: 14px 16px 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .p14-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 86px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(var(--p14-count), minmax(0, 1fr));
        gap: 5px;
        align-items: center;
        background: rgba(255,255,255,0.98);
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -14px 36px rgba(0,0,0,0.18);
        z-index: 1300;
    }

    .p14-bottom-nav a {
        min-width: 0;
        min-height: 66px;
        border-radius: 18px;
        color: #171717;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        position: relative;
        font-family: Arial, sans-serif;
    }

    .p14-bottom-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        position: relative;
    }

    .p14-bottom-icon img {
        width: 31px;
        height: 31px;
        object-fit: contain;
        display: block;
    }

    .p14-bottom-icon span {
        font-size: 28px;
        line-height: 1;
    }

    .p14-bottom-nav a b {
        font-size: 12px;
        font-weight: 900;
        line-height: 1.05;
        text-align: center;
        white-space: normal;
    }

    .p14-bottom-nav a.active {
        color: #ee1748;
    }

    .p14-bottom-nav a.active .p14-bottom-icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
        background: linear-gradient(135deg, #ff174d, #ff5c24);
        box-shadow: 0 8px 20px rgba(255,23,77,0.35);
    }

    .p14-bottom-nav a.active .p14-bottom-icon span {
        color: #fff;
    }

    .p14-bottom-nav a.active .p14-bottom-icon img {
        filter: brightness(0) invert(1);
    }

    .p14-bottom-icon em {
        position: absolute;
        top: -5px;
        right: -7px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ff174d;
        color: white;
        font-size: 10px;
        font-style: normal;
        font-weight: 900;
        display: grid;
        place-items: center;
    }

    .p14-promo-link {
        height: 62px;
        min-height: 62px !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #0087ff, #0062ff) !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(0,98,255,0.35);
        margin-top: -8px;
    }

    .p14-promo-link strong {
        color: #fff;
        font-size: 14px;
        line-height: 1.05;
        text-align: center;
        font-weight: 900;
    }

    .p14-promo-link.active {
        background: linear-gradient(135deg, #ff174d, #ff7a00) !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    .whatsapp-float {
        bottom: 104px !important;
        right: 16px !important;
        z-index: 1200 !important;
    }
}

@media (max-width: 390px) {
    .p14-bottom-nav a b {
        font-size: 11px;
    }

    .p14-promo-link strong {
        font-size: 13px;
    }

    .p14-bottom-icon {
        width: 30px;
        height: 30px;
    }

    .p14-bottom-icon img {
        width: 28px;
        height: 28px;
    }

    .p14-bottom-icon span {
        font-size: 25px;
    }
}