            /* ============================================================
            AGENT / SUB-AGENT THEME FIX
            ------------------------------------------------------------
            The store theme comes from agent_stores.store_theme. These
            CSS variables make the theme work even when the external CSS
            or Tailwind dynamic color loading is cached by the browser.
           
            ============================================================ */
           


            *{
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                scroll-behavior: smooth;
            }
           
            body {
                background: var(--shop-bg, #f8fafc) !important;
                font-family: "Plus Jakarta Sans", sans-serif;
            }

            .store-hero {
                background: var(--shop-hero, linear-gradient(135deg, #0f172a, #2563eb 58%, #06b6d4)) !important;
                box-shadow: 0 18px 45px var(--shop-shadow, rgba(37, 99, 235, .22));
            }

            .bg-primary {
                background-color: var(--shop-primary, #2563eb) !important;
            }

            .text-primary {
                color: var(--shop-primary, #2563eb) !important;
            }

            .border-primary,
            .hover\:border-primary:hover,
            .focus\:border-primary:focus {
                border-color: var(--shop-primary, #2563eb) !important;
            }

            .peer:checked~.peer-checked\:border-primary {
                border-color: var(--shop-primary, #2563eb) !important;
            }

            .peer:checked~.peer-checked\:text-primary {
                color: var(--shop-primary, #2563eb) !important;
            }

            .peer:checked~.peer-checked\:bg-indigo-50,
            .peer:checked~.peer-checked\:bg-emerald-50 {
                background-color: var(--shop-soft, #eff6ff) !important;
            }

            .peer:checked~.peer-checked\:shadow-indigo-500\/20,
            .peer:checked~.peer-checked\:shadow-emerald-500\/20 {
                box-shadow: 0 14px 30px var(--shop-shadow, rgba(37, 99, 235, .22)) !important;
            }

            .focus\:shadow-\[0_0_0_4px_rgba\(79\2c 70\2c 229\2c 0\.1\)\]:focus {
                box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
            }

            .store-soft-card:hover {
                border-color: var(--shop-primary, #2563eb) !important;
            }

            .shimmer {
                background-image: linear-gradient(90deg, var(--shop-primary, #2563eb), var(--shop-accent, #06b6d4), var(--shop-primary, #2563eb)) !important;
                background-size: 180% 100%;
                animation: shopShimmer 1.5s linear infinite;
            }

            @keyframes shopShimmer {
                to {
                    background-position: -180% 0;
                }
            }

            /* Public voucher add-on: keeps vouchers in the same agent/sub-agent storefront. */
            .voucher-choice.is-active {
                border-color: var(--shop-primary, #4f46e5) !important;
                background: var(--shop-soft, #eef2ff) !important;
                box-shadow: 0 14px 30px var(--shop-shadow, rgba(79, 70, 229, .16));
            }

            .voucher-choice.is-disabled {
                opacity: .48;
                cursor: not-allowed;
            }

            .voucher-code-box {
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 18px;
                padding: 12px;
                margin-top: 10px;
            }

            .voucher-copy-btn {
                border: 0;
                border-radius: 12px;
                background: #0f172a;
                color: #ffffff;
                font-size: 11px;
                font-weight: 900;
                padding: 8px 10px;
                margin-top: 8px;
                width: 100%;
            }

            /* Live MTN delivery widget supplied by DataHub Ghana. */
            .mtn-status-section {
                grid-column: 1 / -1;
                width: 100%;
                margin-bottom: 1rem;
                padding: 16px;
                border: 1px solid rgba(187, 247, 208, .95);
                border-radius: 26px;
                background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%);
                box-shadow: 0 16px 38px rgba(22, 163, 74, .09);
                overflow: hidden;
            }

            .mtn-status-header {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 14px;
            }

            .mtn-status-icon {
                width: 44px;
                height: 44px;
                flex: 0 0 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border-radius: 15px;
                color: #ffffff;
                background: linear-gradient(135deg, #16a34a, #059669);
                box-shadow: 0 10px 22px rgba(22, 163, 74, .22);
            }

            .mtn-status-title {
                min-width: 0;
                flex: 1;
            }

            .mtn-status-title p {
                margin: 0 0 3px;
                color: #16a34a;
                font-size: .63rem;
                font-weight: 950;
                letter-spacing: .12em;
                text-transform: uppercase;
            }

            .mtn-status-title h3 {
                margin: 0;
                color: #0f172a;
                font-size: .92rem;
                font-weight: 950;
                line-height: 1.25;
            }

            .mtn-live-badge {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                flex: 0 0 auto;
                padding: 7px 10px;
                border: 1px solid #bbf7d0;
                border-radius: 999px;
                background: #dcfce7;
                color: #15803d;
                font-size: .61rem;
                font-weight: 950;
                letter-spacing: .08em;
            }

            .mtn-live-dot {
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: #22c55e;
                box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
                animation: mtnLivePulse 1.8s ease-in-out infinite;
            }

            #datahub-mtn-widget {
                width: 100%;
                min-height: 60px;
                overflow: hidden;
                border-radius: 16px;
            }

            #datahub-mtn-widget:empty {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 14px;
                border: 1px dashed #bbf7d0;
                background: rgba(255, 255, 255, .8);
                color: #64748b;
                font-size: .75rem;
                font-weight: 800;
                text-align: center;
            }

            #datahub-mtn-widget:empty::before {
                content: "Loading live MTN delivery status...";
            }

            .mtn-status-note {
                margin: 10px 2px 0;
                color: #64748b;
                font-size: .67rem;
                font-weight: 700;
                line-height: 1.5;
            }

            @keyframes mtnLivePulse {

                0%,
                100% {
                    opacity: 1;
                    transform: scale(1);
                }

                50% {
                    opacity: .55;
                    transform: scale(.82);
                }
            }

            @media (max-width: 420px) {
                .mtn-status-section {
                    padding: 15px;
                    border-radius: 22px;
                }

                .mtn-status-header {
                    align-items: flex-start;
                }

                .mtn-status-icon {
                    width: 40px;
                    height: 40px;
                    flex-basis: 40px;
                    border-radius: 13px;
                }

                .mtn-live-badge {
                    padding: 6px 8px;
                    font-size: .56rem;
                }
            }


            /* ============================================================
            NEW SHOP FRONTEND V2
            Clean mobile storefront for data + vouchers.
            ============================================================ */
            body {
                min-height: 100vh;
                background:
                    radial-gradient(circle at top left, color-mix(in srgb, var(--shop-primary, #2563eb) 18%, transparent), transparent 34%),
                    radial-gradient(circle at top right, color-mix(in srgb, var(--shop-accent, #06b6d4) 14%, transparent), transparent 30%),
                    linear-gradient(180deg, #f8fafc 0%, color-mix(in srgb, var(--shop-soft, #eff6ff) 45%, #ffffff) 45%, #ffffff 100%) !important;
            }

            .shop-top-nav {
                width: min(100%, 560px);
                margin: 12px auto 0;
                border: 1px solid rgba(226, 232, 240, .95) !important;
                /* border-radius: 999px; */
                box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
            }

            .shop-shell {
                width: min(100%, 560px) !important;
                padding-bottom: 112px;
            }

            .shop-hero {
                position: relative;
                overflow: hidden;
                border-radius: 34px !important;
                padding: 28px 24px !important;
                text-align: left;
                isolation: isolate;
            }

            .shop-hero::before,
            .shop-hero::after {
                content: "";
                position: absolute;
                border-radius: 999px;
                background: rgba(255, 255, 255, .16);
                pointer-events: none;
                z-index: -1;
            }

            .shop-hero::before {
                width: 180px;
                height: 180px;
                right: -70px;
                top: -70px;
            }

            .shop-hero::after {
                width: 120px;
                height: 120px;
                left: -45px;
                bottom: -55px;
            }

            .shop-action-panel {
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 10px;
                margin: -14px 0 16px;
                position: relative;
                z-index: 3;
            }

            .shop-action-card {
                border: 1px solid rgba(226, 232, 240, .92);
                background: rgba(255, 255, 255, .94);
                backdrop-filter: blur(14px);
                border-radius: 22px;
                padding: 12px 8px;
                min-height: 82px;
                box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 8px;
                transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
            }

            .shop-action-card:active {
                transform: scale(.98);
            }

            .shop-action-card:hover {
                border-color: var(--shop-primary, #2563eb);
                box-shadow: 0 18px 42px var(--shop-shadow, rgba(37, 99, 235, .18));
                transform: translateY(-2px);
            }

            .shop-action-icon {
                width: 42px;
                height: 42px;
                border-radius: 16px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background: var(--shop-soft, #eff6ff);
                color: var(--shop-primary, #2563eb);
            }

            .shop-action-card strong {
                color: #0f172a;
                font-size: 12px;
                line-height: 1.1;
                text-align: center;
                font-weight: 950;
            }

            .shop-section-card {
                border: 1px solid rgba(226, 232, 240, .95) !important;
                border-radius: 30px !important;
                box-shadow: 0 18px 48px rgba(15, 23, 42, .07) !important;
                margin-bottom: 16px !important;
                height: auto !important;
                align-self: start;
            }

            /* Keep a busy sales day from making the whole storefront extremely long. */
            #dashboardRecentOrdersList {
                max-height: 330px;
                overflow-y: auto;
                overscroll-behavior: contain;
                padding-right: 3px;
                scrollbar-width: thin;
                scrollbar-color: #cbd5e1 transparent;
            }

            #dashboardRecentOrdersList::-webkit-scrollbar {
                width: 5px;
            }

            #dashboardRecentOrdersList::-webkit-scrollbar-thumb {
                border-radius: 999px;
                background: #cbd5e1;
            }

            .shop-bottom-bar {
                background: linear-gradient(to top, rgba(255, 255, 255, .98), rgba(255, 255, 255, .92), rgba(255, 255, 255, 0)) !important;
            }

            .shop-bottom-bar>div {
                padding: 10px;
                border-radius: 28px;
                background: rgba(255, 255, 255, .94);
                border: 1px solid rgba(226, 232, 240, .95);
                box-shadow: 0 -10px 40px rgba(15, 23, 42, .10);
                backdrop-filter: blur(18px);
            }

            .shop-bottom-bar button {
                min-height: 60px;
                border-radius: 20px !important;
            }

            #bottomSheet,
            #voucherSheet {
                border: 1px solid rgba(226, 232, 240, .9);
            }

            #bottomSheet select,
            #bottomSheet input,
            #voucherSheet input {
                box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
            }

            .new-ui-badge {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 8px 12px;
                border-radius: 999px;
                background: rgba(255, 255, 255, .16);
                border: 1px solid rgba(255, 255, 255, .22);
                color: rgba(255, 255, 255, .9);
                font-size: 11px;
                font-weight: 900;
                text-transform: uppercase;
                letter-spacing: .08em;
                margin-bottom: 14px;
            }

            .special-offer-choice.is-active {
                border-color: var(--shop-primary, #2563eb) !important;
                background: var(--shop-soft, #eff6ff) !important;
                box-shadow: 0 14px 30px var(--shop-shadow, rgba(37, 99, 235, .18));
            }

            .special-offer-badge {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 6px 10px;
                border-radius: 999px;
                background: #fff7ed;
                color: #9a3412;
                font-size: 10px;
                font-weight: 950;
                text-transform: uppercase;
                letter-spacing: .08em;
            }

            .special-offer-package-list {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            @media (max-width: 520px) {
                .special-offer-package-list {
                    grid-template-columns: 1fr;
                }
            }

            body.store-theme-dark_mode {
                background: #020617 !important;
            }

            body.store-theme-dark_mode .shop-action-card,
            body.store-theme-dark_mode .shop-section-card,
            body.store-theme-dark_mode .shop-bottom-bar>div,
            body.store-theme-dark_mode .shop-top-nav {
                background: rgba(15, 23, 42, .92) !important;
                border-color: rgba(51, 65, 85, .95) !important;
            }

            body.store-theme-dark_mode .shop-action-card strong {
                color: #f8fafc;
            }

            body.store-theme-dark_mode .mtn-status-section {
                border-color: rgba(34, 197, 94, .32);
                background: linear-gradient(135deg, rgba(20, 83, 45, .42), rgba(15, 23, 42, .96));
            }

            body.store-theme-dark_mode .mtn-status-title h3 {
                color: #f8fafc;
            }

            body.store-theme-dark_mode .mtn-status-note,
            body.store-theme-dark_mode #datahub-mtn-widget:empty {
                color: #cbd5e1;
            }

            body.store-theme-dark_mode #datahub-mtn-widget:empty {
                border-color: rgba(34, 197, 94, .32);
                background: rgba(15, 23, 42, .72);
            }

            @media (max-width: 560px) {
                .shop-action-panel {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }
            }

            @media (max-width: 420px) {
                .shop-action-panel {
                    gap: 8px;
                }

                .shop-action-card {
                    min-height: 86px;
                    padding: 12px 8px;
                }

                .shop-action-icon {
                    width: 38px;
                    height: 38px;
                    border-radius: 14px;
                }

                .shop-action-card strong {
                    font-size: 11px;
                }
            }


            /* ============================================================
            FASTDATANET RESPONSIVE FRONTEND UPGRADE PATCH
            ------------------------------------------------------------
            This patch keeps your existing PHP/JS/payment logic untouched.
            It only improves the public shop layout on desktop, tablet,
            and small mobile screens.
            ============================================================ */
            html {
                width: 100%;
                overflow-x: hidden;
                -webkit-text-size-adjust: 100%;
            }

            body {
                overflow-x: hidden;
                touch-action: manipulation;
            }

            img,
            svg,
            video,
            canvas {
                max-width: 100%;
                height: auto;
            }

            button,
            a,
            input,
            select,
            textarea {
                -webkit-tap-highlight-color: transparent;
            }

            .no-scrollbar {
                scrollbar-width: none;
            }

            .no-scrollbar::-webkit-scrollbar {
                display: none;
            }

            .shop-top-nav {
                width: min(calc(100% - 24px), 1180px) !important;
                top: 10px !important;
                padding-left: clamp(14px, 3vw, 24px) !important;
                padding-right: clamp(14px, 3vw, 24px) !important;
            }

            .shop-shell {
                width: min(calc(100% - 24px), 1180px) !important;
                max-width: 1180px !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            .shop-hero {
                min-height: 200px;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            .shop-action-panel,
            .shop-section-card,
            #dynamic-wa-link,
            a[href*="register"] {
                width: 100%;
            }

            .shop-action-panel {
                margin-top: -20px !important;
            }

            .shop-action-card {
                border: 0 !important;
            }

            #dashboardRecentOrdersList>div,
            #planOptions>label,
            #voucherChoiceGrid>button,
            .special-offer-choice,
            .voucher-choice {
                word-break: break-word;
            }

            input[type="tel"],
            input[type="number"],
            input[type="text"],
            select {
                min-height: 52px;
            }

            #phone,
            #voucherCustomerPhone,
            #specialOfferPhone {
                font-size: clamp(1.15rem, 5vw, 1.75rem) !important;
                letter-spacing: .12em !important;
            }

            #bottomSheet,
            #voucherSheet,
            #specialOfferSheet {
                width: min(calc(100% - 18px), 640px) !important;
                max-width: 640px !important;
                left: 50% !important;
                right: auto !important;
                transform: translate(-50%, 100%) !important;
                border-top-left-radius: 32px !important;
                border-top-right-radius: 32px !important;
            }

            #bottomSheet.translate-y-0,
            #voucherSheet.translate-y-0,
            #specialOfferSheet.translate-y-0 {
                transform: translate(-50%, 0) !important;
            }

            .shop-bottom-bar {
                pointer-events: none;
            }

            .shop-bottom-bar>div {
                width: min(calc(100% - 18px), 720px) !important;
                max-width: 720px !important;
                pointer-events: auto;
            }

            @media (min-width: 900px) {
                .shop-shell {
                    display: grid;
                    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
                    gap: 22px;
                    align-items: start;
                    margin-top: 28px !important;
                }

                .shop-shell>.mb-6.text-center,
                .shop-action-panel,
                .shop-shell>.grid.grid-cols-2.gap-4.mb-8 {
                    grid-column: 1 / -1;
                }

                .shop-hero {
                    text-align: left !important;
                    padding: 34px 36px !important;
                }

                .shop-hero .w-16.h-16 {
                    margin-left: 0 !important;
                    margin-right: 0 !important;
                }

                .shop-hero h2 {
                    font-size: clamp(2rem, 4vw, 3.4rem) !important;
                    max-width: 760px;
                }

                .shop-hero p {
                    max-width: 720px;
                    font-size: 1rem !important;
                }

                .shop-action-panel {
                    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
                    gap: 14px !important;
                }

                .shop-action-card {
                    min-height: 96px !important;
                }

                .shop-action-icon {
                    width: 50px !important;
                    height: 50px !important;
                }

                .shop-action-card strong {
                    font-size: 14px !important;
                }

                .shop-shell>.grid.grid-cols-2.gap-4.mb-8 {
                    display: grid !important;
                    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                }

                .shop-section-card {
                    margin-bottom: 0 !important;
                }

                #dynamic-wa-link,
                a[href*="register"] {
                    margin-top: 0 !important;
                }

                .shop-bottom-bar {
                    padding-bottom: 18px !important;
                }
            }

            @media (min-width: 1180px) {
                .shop-shell {
                    grid-template-columns: 1fr 1fr;
                }

                .shop-shell>.mb-6.text-center,
                .shop-action-panel,
                .shop-shell>.grid.grid-cols-2.gap-4.mb-8 {
                    grid-column: 1 / -1;
                }
            }

            @media (max-width: 899px) {
                .shop-shell {
                    display: block;
                    max-width: 560px !important;
                }

                .shop-top-nav {
                    max-width: 560px !important;
                }
            }

            @media (max-width: 560px) {
                .shop-top-nav {
                    width: calc(100% - 16px) !important;
                    margin-top: 8px !important;
                    /* border-radius: 22px !important; */
                    align-items: center !important;
                    gap: 10px !important;
                }

                .shop-top-nav h1 {
                    max-width: 170px !important;
                    font-size: 1rem !important;
                }

                .shop-top-nav button {
                    padding: 10px 12px !important;
                    font-size: .68rem !important;
                    white-space: nowrap;
                }

                .shop-shell {
                    width: calc(100% - 16px) !important;
                    margin-top: 18px !important;
                }

                .shop-hero {
                    border-radius: 28px !important;
                    min-height: 0 !important;
                    padding: 20px 16px !important;
                }

                .shop-hero h2 {
                    font-size: 1.55rem !important;
                }

                .shop-action-panel {
                    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                    gap: 10px !important;
                }

                .shop-action-card {
                    min-height: 80px !important;
                }

                .shop-section-card {
                    border-radius: 24px !important;
                    padding: 16px !important;
                }

                #dynamic-wa-link,
                a[href*="register"] {
                    border-radius: 24px !important;
                    padding: 14px !important;
                }

                .shop-bottom-bar {
                    padding: 10px 8px max(10px, env(safe-area-inset-bottom)) !important;
                }

                .shop-bottom-bar>div {
                    width: calc(100% - 8px) !important;
                    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
                    gap: 8px !important;
                    border-radius: 24px !important;
                }

                .shop-bottom-bar button {
                    min-height: 56px !important;
                    padding-left: 6px !important;
                    padding-right: 6px !important;
                    font-size: .70rem !important;
                    gap: 5px !important;
                }

                #bottomSheet,
                #voucherSheet,
                #specialOfferSheet {
                    width: 100% !important;
                    max-width: 100% !important;
                    border-top-left-radius: 28px !important;
                    border-top-right-radius: 28px !important;
                }

                #bottomSheet>.px-6,
                #voucherSheet>.px-6,
                #specialOfferSheet>.px-6 {
                    padding-left: 16px !important;
                    padding-right: 16px !important;
                }
            }

            @media (max-width: 420px) {

                .shop-shell>.grid.grid-cols-2.gap-4.mb-8,
                .shop-section-card .grid.grid-cols-2.gap-3 {
                    grid-template-columns: 1fr !important;
                }

                .shop-action-panel {
                    grid-template-columns: 1fr 1fr !important;
                }

                .shop-action-card strong {
                    font-size: 10.5px !important;
                }

                .special-offer-badge {
                    font-size: 9px !important;
                }

                .shop-bottom-bar button span,
                .shop-bottom-bar button {
                    font-size: .64rem !important;
                }
            }

            @media (max-width: 350px) {
                .shop-action-panel {
                    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                }

                .shop-bottom-bar>div {
                    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
                }

                .shop-bottom-bar button {
                    min-height: 48px !important;
                    font-size: .55rem !important;
                    gap: 2px !important;
                }
            }