/* ============================================================
   NearU - MyMall Section
   Tokens from theme-tokens.css; buttons/badges/tints from components.css
   ============================================================ */

/* ---------- Toggle shell ---------- */
.nearu-mymall-shell {
    position: relative;
}
.nearu-mymall-toggle {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    padding: 6px;
    margin: 0 auto 22px;
    background: #fff;
    border: 1px solid var(--nearu-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 14px 34px rgba(26, 27, 46, .08);
}
.nearu-mymall-toggle-btn {
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--nearu-muted);
    font-size: 14px;
    font-weight: var(--fw-bold);
    line-height: 1;
    padding: 12px 22px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nearu-mymall-toggle-btn.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 10px 22px rgba(181, 0, 86, .18);
}

/* ---------- Cards ---------- */
.nearu-mymall-card {
    height: 100%;
    border-radius: var(--radius-panel);
    padding: clamp(32px, 4vw, 54px);
}
.nearu-mymall-customers { background: var(--nearu-mm-pink); }
.nearu-mymall-merchants { background: var(--nearu-mm-peach); }
.nearu-mymall-panel {
    display: none;
    animation: nearuMymallPanelIn .45s ease both;
}
.nearu-mymall-panel.active {
    display: block;
}

/* ---------- Eyebrow ---------- */
.nearu-mymall-eyebrow {
    font-weight: var(--fw-bold);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.nearu-eyebrow-red { color: var(--brand-red); }
.nearu-eyebrow-orange { color: var(--brand-orange); }

/* ---------- Headings & text ---------- */
.nearu-mymall-title {
    color: var(--nearu-ink);
    font-weight: var(--fw-bold);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.25;
    margin: 0 0 18px;
}
.nearu-mymall-text {
    color: var(--nearu-muted);
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 14px;
    margin-bottom: 0;
    font-weight: 600;
}

@media (min-width: 992px) {
    .nearu-mymall-phone-wrap img {
        width: auto;
        max-height: 500px;
    }
}

.nearu-mymall-cta .nearu-btn-primary {
    font-size: 15px;
    padding: 13px 22px;
}
.nearu-mymall-cta .nearu-btn-outline {
    font-size: 15px;
    padding: 13px 22px;
}
/* ---------- Benefits row ---------- */
.nearu-mymall-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 18px;
    max-width: 760px;
    margin: 30px 0 28px;
}
.nearu-mymall-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.nearu-mymall-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
}
.nearu-mymall-benefit-label {
    font-size: 12px;
    font-weight: var(--fw-semibold);
    color: var(--nearu-ink);
    line-height: 1.3;
}

/* ---------- CTA wrapper ---------- */
.nearu-mymall-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   CSS phone mockups
   ============================================================ */
.nearu-mymall-phone-wrap {
    display: flex;
    justify-content: center;
}
.nearu-mymall-phone-wrap img {
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 24px 42px rgba(26, 27, 46, .18));
}
.nearu-mm-phone {
    position: relative;
    width: 100%;
    max-width: 190px;
    background: #1f2230;
    border-radius: 26px;
    padding: 9px;
    box-shadow: 0 22px 48px rgba(26,27,46,.22);
}
.nearu-mm-phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 34%; height: 13px; background: #1f2230; border-radius: 0 0 10px 10px; z-index: 2;
}
.nearu-mm-phone-screen {
    background: #f6f7fb; border-radius: 19px; padding: 18px 12px 14px; overflow: hidden;
}
.nearu-mm-app-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.nearu-mm-app-logo {
    display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
    background: var(--brand-gradient);
    color: #fff; font-size: 11px; font-weight: var(--fw-bold);
}
.nearu-mm-app-name { font-size: 12px; font-weight: var(--fw-bold); color: var(--nearu-ink); }
.nearu-mm-app-figure { font-size: 10px; font-weight: var(--fw-bold); color: var(--nearu-muted); text-transform: uppercase; letter-spacing: .4px; }
.nearu-mm-app-label {
    display: block; font-size: 9.5px; font-weight: var(--fw-bold); color: var(--nearu-muted);
    text-transform: uppercase; letter-spacing: .4px; margin: 6px 0;
}

.nearu-mm-shop-row { display: flex; gap: 8px; margin-bottom: 12px; }
.nearu-mm-shop {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #f7d9cf, #f3c6b5);
    flex: 0 0 auto;
}

.nearu-mm-foll-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nearu-mm-foll-row strong { font-size: 18px; color: var(--nearu-ink); }

.nearu-mm-offer {
    background: var(--brand-gradient);
    border-radius: 12px; padding: 12px; color: #fff; text-align: left;
}
.nearu-mm-offer-merchant { background: #fff; color: var(--nearu-ink); border: 1px solid var(--nearu-tile-border); }
.nearu-mm-offer-tag { font-size: 9px; font-weight: var(--fw-semibold); opacity: .9; display: block; }
.nearu-mm-offer-merchant .nearu-mm-offer-tag { color: var(--nearu-muted); opacity: 1; }
.nearu-mm-offer-deal { font-size: 20px; font-weight: var(--fw-bold); display: block; line-height: 1.1; }
.nearu-mm-offer-merchant .nearu-mm-offer-deal { color: var(--brand-red); }
.nearu-mm-offer-sub { font-size: 9px; display: block; margin-bottom: 8px; }
.nearu-mm-offer-btn {
    display: inline-block; background: #fff; color: var(--brand-red);
    font-size: 9px; font-weight: var(--fw-bold); padding: 4px 12px; border-radius: var(--radius-pill);
}
.nearu-mm-offer-merchant .nearu-mm-offer-btn { background: var(--brand-red); color: #fff; }

.nearu-mm-chart { margin-top: 6px; }
.nearu-mm-chart svg { width: 100%; height: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .nearu-mymall-toggle {
        display: flex;
        width: max-content;
        max-width: 100%;
    }
    .nearu-mymall-card { padding: 30px 24px; }
    .nearu-mymall-benefits { grid-template-columns: repeat(3, minmax(86px, 1fr)); }
    .nearu-mymall-phone-wrap img { max-height: 430px; }
}

@media (max-width: 575.98px) {
    .nearu-mymall-toggle {
        width: 100%;
    }
    .nearu-mymall-toggle-btn {
        flex: 1;
        padding: 12px 10px;
    }
    .nearu-mymall-card { padding: 26px 18px; }
    .nearu-mm-phone { max-width: 170px; }
    .nearu-mymall-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
    .nearu-mymall-cta { justify-content: center; }
    .nearu-mymall-phone-wrap img { max-height: 360px; }
}

@keyframes nearuMymallPanelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nearu-mymall-panel {
        animation: none;
    }
}
