@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,600&display=swap');

:root {
    /* ebuyhubpay — royal blue app shell (all pages) */
    --app-primary: #004aad;
    --app-primary-dark: #003580;
    --app-primary-light: #0056c8;
    --app-bg: #f0f4f8;
    --app-yellow: #ffcc00;
    --accent-gold: #d4af37;

    --ecom-blue: var(--app-primary);
    --ecom-blue-dark: var(--app-primary-dark);
    --ecom-yellow: var(--app-yellow);

    --bg-deep: #0c1222;
    --bg-mid: #1a2238;
    --primary-color: var(--app-primary);
    --primary-dark: var(--app-primary-dark);
    --primary-light: rgba(0, 74, 173, 0.12);
    --primary-tint: #e8f0fc;
    --header-gradient: linear-gradient(180deg, var(--app-primary-light) 0%, var(--app-primary) 55%, #003c8f 100%);
    --secondary-color: var(--accent-gold);
    --text-color: #334155;
    --heading-color: #0f172a;
    --bg-color: var(--app-bg);
    --bg-page: var(--app-bg);
    --white: #ffffff;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --orange: #ea580c;
    --cta-gradient: linear-gradient(135deg, #1a7bff 0%, var(--app-primary) 100%);
    --nav-inactive: #94a3b8;
    --shadow-app: 0 0 36px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

body {
    max-width: 414px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: var(--shadow-app);
    background: var(--app-bg);
    background-attachment: fixed;
    color: var(--text-color);
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* Header (default - when not home gradient header) */
header:not(.home-header) {
    background: var(--header-gradient);
    color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0, 74, 173, 0.22);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 16px 16px;
}

header:not(.home-header) .location,
header:not(.home-header) .header-left,
header:not(.home-header) .header-right {
    color: #fff;
}

header:not(.home-header) a {
    color: #fff !important;
}

header:not(.home-header) i {
    color: #fff;
}

header:not(.home-header) a.coins-badge {
    color: #1e293b !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coins-badge {
    background-color: #fff9c4;
    color: #fbc02d;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #fbc02d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trophy-icon {
    font-size: 20px;
    color: #f1c40f;
}

/* Main Content */
.container {
    padding: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Top Services Row */
.top-services {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23%;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background: #eee; */
    /* Placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-name {
    font-size: 11px;
    text-align: center;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Categories Grid */
.category-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 10px;
    width: 48%;
    /* 2 per row */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.category-items {
    display: flex;
    justify-content: space-between;
}

.sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%;
}

.sub-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sub-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-name {
    font-size: 10px;
    text-align: center;
    color: #555;
}

/* Shopping Section */
.shopping-section {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shopping-grid {
    display: flex;
    justify-content: space-between;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--nav-inactive);
    text-decoration: none;
    font-size: 10px;
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

/* Utilities */
.arrow-right {
    font-size: 12px;
    color: #888;
}

/* Sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 36, 80, 0.48);
    z-index: 998;
    display: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 28px rgba(0, 74, 173, 0.15);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 22px 18px;
    background: var(--header-gradient);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-header i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-header .sidebar-header-chevron {
    margin-left: auto;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #f8fafc;
}

.user-info p {
    font-size: 14px;
    color: rgba(248, 250, 252, 0.82);
    margin: 0;
}

.sidebar-menu {
    padding: 10px 0;
}

.menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.menu-item:hover {
    background: var(--primary-tint);
}

.menu-item i {
    width: 30px;
    color: var(--app-primary);
    font-size: 18px;
}

.menu-item span {
    flex-grow: 1;
}

.logout-item {
    margin-top: 20px;
}

.logout-item i {
    color: #c62828 !important;
}

/* Inner pages: legacy top bar (div.header-left + inline white bg) */
body > .header-left[style*="background: white"] {
    display: flex !important;
    align-items: center !important;
    padding: 15px 16px !important;
    background: var(--header-gradient) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 18px rgba(0, 74, 173, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff !important;
}

body > .header-left[style*="background: white"] a {
    color: #fff !important;
}

body > .header-left[style*="background: white"] span {
    color: #fff !important;
}

/* Optional: compact back row (e.g. profile) */
.app-topbar-back {
    background: var(--header-gradient);
    padding: 12px 16px;
    box-shadow: 0 4px 18px rgba(0, 74, 173, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-topbar-back a {
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

/* Inner pages: top strip with menu + title (e.g. myteam) */
.app-header-strip {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-gradient);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 74, 173, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header-strip .fa-bars {
    color: #fff !important;
    cursor: pointer;
}

/* New Home Page Layout */
.top-icons-row {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 19%;
    text-align: center;
    cursor: pointer;
}

.icon-img-box {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.icon-img-box img {
    width: 32px !important;
    height: 32px !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-label {
    font-size: 10px;
    color: #444;
    font-weight: 500;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    /* Fallback */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Force cover */
    display: block;
    /* Remove inline gap */
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 20px;
    /* Keep on right side where space is */
    transform: translateY(-50%);
    text-align: center;
    /* Align Text Center */
    color: white;
    width: 50%;
    /* Constrain width to right half */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    background: var(--cta-gradient);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
}

.insurance-banner {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insurance-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insurance-content {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.insurance-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.insurance-desc {
    font-size: 10px;
    color: #666;
}

.bottom-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.grid-card {
    width: calc(50% - 5px);
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 10px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* New Sections: FunZone & Nearby */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--heading-color);
}

.section-subtitle {
    font-size: 12px;
    color: #636e72;
    margin-top: -10px;
    margin-bottom: 15px;
    padding: 0 5px;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 5px;
    padding-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Daily Coupons Deals (home) */
.daily-coupons-wrap {
    margin-bottom: 20px;
}

.daily-coupons-head .daily-coupons-sec-title {
    font-style: italic;
    color: var(--ecom-blue, #004aad);
}

.daily-coupons-scroll {
    gap: 12px;
    padding: 4px 5px 14px;
}

.daily-coupon-card {
    /* Fixed width: flex-basis must not be `auto` or huge PNGs set the card to intrinsic image width */
    flex: 0 0 124px;
    width: 124px;
    min-width: 0;
    max-width: 124px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fdf2f8 0%, #fae8ff 55%, #f3e8ff 100%);
    border-radius: 16px;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #1e293b !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.daily-coupon-card:active {
    transform: scale(0.98);
}

.daily-coupon-logo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
}

.daily-coupon-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
    object-position: center;
}

/* Full-width promo strip under Daily Coupons title (optional) */
.daily-coupons-wrap > .daily-coupons-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 5px 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    box-sizing: border-box;
}

.daily-coupons-wrap > .daily-coupons-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    object-position: center;
}

.daily-coupon-brand {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.2;
}

.daily-coupon-pill {
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #004aad;
    background: rgba(0, 74, 173, 0.1);
    border: 1px dashed rgba(0, 74, 173, 0.35);
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    cursor: copy;
}

.daily-coupon-label {
    display: block;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 2px;
}

.daily-coupon-cta {
    width: 100%;
    text-align: center;
    background: #0f172a;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 6px;
    border-radius: 22px;
    letter-spacing: 0.04em;
}

/* Nearby Categories - small horizontal scroll (same style as Near by Partners) */
.nearby-categories-section .scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 4px 15px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}
.nearby-categories-section .scroll-container::-webkit-scrollbar {
    display: none;
}

.nearby-card {
    flex: 0 0 auto;
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    scroll-snap-align: start;
    text-decoration: none;
    color: #2d3436;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #faf6f0;
    border-radius: 12px;
    padding: 12px 8px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.nearby-card .nearby-img {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #fff;
    flex-shrink: 0;
}

.nearby-card .nearby-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.nearby-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Arrow on nearby cards (used in index.php) */
.nearby-arrow {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #2d3436;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 380px) {
    .nearby-card {
        width: 95px;
        min-width: 95px;
        max-width: 95px;
        padding: 12px 10px 10px;
    }
    .nearby-card .nearby-img {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        max-width: 56px;
        max-height: 56px;
        margin-bottom: 8px;
    }
    .nearby-card-label { font-size: 11px; }
}
@media (min-width: 480px) {
    .nearby-card {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        padding: 14px 10px 12px;
    }
    .nearby-card .nearby-img {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
        margin-bottom: 8px;
    }
    .nearby-card-label { font-size: 12px; }
}

.nearby-title {
    font-size: 11px;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    line-height: 1.3;
}

/* Nav Grid Section (8 Icons) */
.nav-grid-section {
    background: white;
    border-radius: 16px;
    padding: 20px 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px 10px;
}

.nav-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
}

.nav-grid-icon-box {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    transition: transform 0.2s;
    border: 1px solid #f1f2f6;
}

.nav-grid-item:hover .nav-grid-icon-box {
    transform: scale(1.05);
    background: var(--primary-light);
}

.nav-grid-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-grid-label {
    font-size: 10px;
    color: #555;
    font-weight: 500;
}

/* Promo Banner Section */
.promo-banner-section {
    margin-bottom: 25px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.promo-banner-section img {
    width: 100%;
    display: block;
    min-height: 160px;
    object-fit: cover;
}

.promo-content {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 60%;
    color: white;
}

.promo-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-desc {
    font-size: 11px;
    margin-bottom: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.promo-btn {
    background: var(--cta-gradient);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
}

/* Shopping Sites */
.shopping-card {
    min-width: 140px;
    background: white;
    border-radius: 16px;
    padding: 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
    padding-bottom: 25px;
    /* Space for coupon */
}

.shopping-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8f9fa;
    position: relative;
}

.shopping-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopping-logo {
    text-align: center;
    padding: 8px;
    font-weight: bold;
    color: #e74c3c;
    /* Red color for logo text */
    font-size: 14px;
}

.coupon-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    border-top-right-radius: 8px;
    /* Tab look */
}

/* Brand Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 5px;
}

.brand-box {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    aspect-ratio: 1.2/1;
    /* Slightly wider */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.brand-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-fit: contain;
}

/* Vertical Promo Cards */
.vertical-promo-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.vertical-card {
    width: 48%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.v-card-img {
    width: 100%;
    aspect-ratio: 4/5;
    /* Taller aspect ratio */
    background: #f0f0f0;
}

.v-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-card-content {
    padding: 10px;
    text-align: center;
}

.v-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2d3436;
}

.v-card-desc {
    font-size: 11px;
    color: #636e72;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Earn More Section */
.earn-more-section {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.earn-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.earn-badge {
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.earn-icons-row {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    gap: 15px;
}

.earn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    text-decoration: none;
    color: #2d3436;
}

.earn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    padding: 10px;
    background: white;
}

.earn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.earn-label {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

/* Category Blocks (2x2) */
.cat-blocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.cat-block {
    background: white;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cat-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cat-block-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3436;
}

.cat-block-brands {
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

.cat-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.cat-brand-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #f0f0f0;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    overflow: hidden;
}

.cat-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cat-brand-name {
    font-size: 9px;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
}

.cat-block.ebuyhubpay-home-cats {
    grid-column: 1 / -1;
}

.ebuyhubpay-home-cats .cat-block-brands {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 10px;
}

.ebuyhubpay-home-cats .cat-brand-icon {
    width: 48px;
    height: 48px;
}

/* ========== Home Page Design (ebuyhubpay blue header) ========== */
header.home-header {
    background: var(--header-gradient) !important;
    color: #fff !important;
    padding: 12px 15px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 32px rgba(12, 18, 34, 0.45);
    display: block;
}
header.home-header .home-header-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header.home-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
header.home-header .header-left i.fa-bars,
header.home-header .header-title,
header.home-header .header-right i,
header.home-header .header-right a,
header.home-header .location-text,
header.home-header .location-text i,
header.home-header .location-edit,
header.home-header .location-edit i {
    color: #fff !important;
}
header.home-header .header-left i.fa-bars {
    font-size: 20px;
    cursor: pointer;
}
header.home-header .header-title {
    font-size: 18px;
    font-weight: 700;
}
header.home-header .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
header.home-header .header-right i { font-size: 20px; }
header.home-header .header-right button { color: #fff !important; background: rgba(255,255,255,0.2) !important; border-color: rgba(255,255,255,0.5) !important; }
header.home-header .notif-wrap { position: relative; }
header.home-header .notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ff9800;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
}
header.home-header .home-header-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
}
header.home-header .location-text {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
header.home-header .location-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.home-header .location-edit { font-size: 14px; margin-left: 8px; text-decoration: none; }

/* Quick Access - pastel circular icons (reference app) */
.quick-access-section {
    background: var(--bg-color);
    padding: 24px 16px 28px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
}
.quick-access-item {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    color: #2d3436 !important;
}
.quick-access-item:link,
.quick-access-item:visited,
.quick-access-item:hover,
.quick-access-item:active {
    color: #2d3436 !important;
    text-decoration: none !important;
}
/* Same size circle for all four - fixed dimensions */
.quick-access-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}
.quick-access-item:nth-child(1) .quick-access-circle {
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #c7d2fe 55%, #818cf8 100%);
}
.quick-access-item:nth-child(2) .quick-access-circle {
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #ddd6fe 55%, #a78bfa 100%);
}
.quick-access-item:nth-child(3) .quick-access-circle {
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #bae6fd 55%, #38bdf8 100%);
}
.quick-access-item:nth-child(4) .quick-access-circle {
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #fde68a 55%, #fbbf24 100%);
}
.quick-access-item:nth-child(1) .quick-access-circle i { font-size: 26px; color: #3730a3 !important; }
.quick-access-item:nth-child(2) .quick-access-circle i { font-size: 26px; color: #5b21b6 !important; }
.quick-access-item:nth-child(3) .quick-access-circle i { font-size: 26px; color: #0369a1 !important; }
.quick-access-item:nth-child(4) .quick-access-circle i { font-size: 26px; color: #b45309 !important; }
.quick-access-item:nth-child(1) .quick-access-circle img.quick-access-icon-img { filter: none; }
.quick-access-circle i {
    font-size: 26px;
}
.quick-access-circle img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.quick-access-circle img.quick-access-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.quick-access-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--heading-color) !important;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prepaid Card Banner - royal blue, orange CTA */
a.prepaid-banner-new {
    margin: 0 15px 20px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #312e81 0%, #1e1b4b 45%, #0c1222 100%) !important;
    box-shadow: 0 14px 36px rgba(12, 18, 34, 0.4);
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    padding: 22px 20px;
    text-decoration: none !important;
}
a.prepaid-banner-new::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,193,7,0.1) 0%, transparent 40%);
    pointer-events: none;
}
a.prepaid-banner-new .prepaid-banner-content,
a.prepaid-banner-new .prepaid-banner-content .intro,
a.prepaid-banner-new .prepaid-banner-content h2,
a.prepaid-banner-new .prepaid-banner-content .sub,
a.prepaid-banner-new .prepaid-banner-content .tagline {
    color: #fff !important;
}
.prepaid-banner-content {
    flex: 1;
    position: relative;
    z-index: 1;
    max-width: 100%;
}
.prepaid-banner-content .intro { font-size: 12px; opacity: 0.95; margin-bottom: 4px; }
.prepaid-banner-content h2 { font-size: 26px; font-weight: 800; margin: 0 0 2px; letter-spacing: -0.5px; }
.prepaid-banner-content .sub { font-size: 11px; opacity: 0.9; margin-bottom: 8px; letter-spacing: 1px; }
.prepaid-banner-content .tagline { font-size: 12px; opacity: 0.9; margin-bottom: 12px; }
.prepaid-banner-content .btn-prepaid {
    display: inline-block;
    background: var(--cta-gradient);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.45);
}

/* Utilities & Pay Bills - rounded white card */
.utilities-section {
    margin: 0 12px 20px;
    padding: 20px 14px 22px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.utilities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 2px;
}
.utilities-header .section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--heading-color);
    margin: 0;
}
.utilities-header .view-all {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.utilities-header .view-all:hover {
    color: var(--primary-dark);
}
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 8px;
}
.utilities-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.utilities-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}
.utilities-icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.utilities-icon-wrap i {
    font-size: 22px;
    color: #555;
}
.utilities-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--heading-color);
    text-align: center;
    line-height: 1.2;
}

/* Scrollable promo banners - constrained to app width, no overflow */
.promo-banners-scroll-outer {
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}
.promo-banners-scroll-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 12px;
    overflow: hidden;
}
.promo-banners-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 0 12px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.promo-banners-scroll::-webkit-scrollbar {
    display: none;
}
.promo-banner-card {
    flex: 0 0 auto;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    min-height: 78px;
    max-height: 78px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    color: #fff;
    box-sizing: border-box;
}
.promo-banner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.12;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        currentColor 4px,
        currentColor 5px
    );
    pointer-events: none;
}
.promo-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 8px 8px;
    min-height: 78px;
    box-sizing: border-box;
    overflow: hidden;
}
.promo-banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
}
.promo-banner-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
}
.promo-banner-title-sm {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
}
.promo-banner-sub {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.promo-banner-sub em {
    font-style: normal;
    color: #b8ff30;
}
.promo-banner-tag {
    display: inline-block;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(0,0,0,0.25);
    align-self: flex-start;
}
.promo-banner-cta {
    display: inline-block;
    margin-top: 2px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: #e53935;
    color: #fff;
    box-shadow: 0 1px 4px rgba(229,57,53,0.35);
    align-self: flex-start;
}
.promo-banner-placeholder {
    width: 36px;
    min-width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    flex-shrink: 0;
}
.promo-banner-img-wrap {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}
.promo-banner-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
/* Primary promo strip (blue) */
.promo-banner--green {
    background: linear-gradient(135deg, #4f6fff 0%, #3730a3 55%, #1e1b4b 100%);
}
.promo-banner--green .promo-banner-tag {
    background: rgba(0,0,0,0.3);
    color: #fff;
}
/* Orange banner */
.promo-banner--orange {
    background: linear-gradient(135deg, #ff8c42 0%, #e85a20 100%);
}
.promo-banner--orange .promo-banner-sub em {
    color: #fff;
}

/* Near by Partners - Category with Images (after Banners) */
.nearby-partners-section {
    background: var(--bg-color);
    padding: 16px 0 20px;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    box-sizing: border-box;
}
.nearby-partners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 14px;
}
.nearby-partners-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--heading-color);
}
.nearby-partners-viewall {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nearby-partners-viewall:hover { color: var(--primary-dark); }
.nearby-partners-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 4px 15px 12px 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    box-sizing: border-box;
}
.nearby-partners-scroll::-webkit-scrollbar {
    display: none;
}
.nearby-partner-card {
    flex: 0 0 auto;
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    scroll-snap-align: start;
    text-decoration: none;
    color: #2d3436;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #faf6f0;
    border-radius: 12px;
    padding: 12px 8px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.nearby-partner-img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nearby-partner-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.nearby-partner-label {
    font-size: 11px;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
/* Responsive: slightly larger on bigger screens, still horizontal scroll */
@media (min-width: 380px) {
    .nearby-partner-card {
        width: 95px;
        min-width: 95px;
        max-width: 95px;
        padding: 12px 10px 10px;
    }
    .nearby-partner-img {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        max-width: 56px;
        max-height: 56px;
        margin-bottom: 8px;
    }
    .nearby-partner-label { font-size: 11px; }
}
@media (min-width: 480px) {
    .nearby-partner-card {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        padding: 14px 10px 12px;
    }
    .nearby-partner-img {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
        margin-bottom: 8px;
    }
    .nearby-partner-label { font-size: 12px; }
}

/* Responsive: slightly larger on bigger screens so both still visible */
@media (min-width: 380px) {
    .promo-banner-card {
        width: 165px;
        min-width: 165px;
        max-width: 165px;
        min-height: 84px;
        max-height: 84px;
    }
    .promo-banner-inner { padding: 9px 9px; min-height: 84px; }
    .promo-banner-title { font-size: 12px; }
    .promo-banner-title-sm { font-size: 10px; }
    .promo-banner-sub { font-size: 10px; }
    .promo-banner-tag { font-size: 8px; padding: 2px 7px; }
    .promo-banner-cta { font-size: 9px; padding: 4px 9px; }
    .promo-banner-placeholder { width: 40px; min-width: 40px; height: 40px; }
    .promo-banner-img-wrap { width: 44px; min-width: 44px; height: 40px; }
}
@media (min-width: 480px) {
    .promo-banner-card {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        min-height: 90px;
        max-height: 90px;
    }
    .promo-banner-inner { padding: 10px 10px; min-height: 90px; }
    .promo-banner-title { font-size: 13px; }
    .promo-banner-title-sm { font-size: 11px; }
    .promo-banner-sub { font-size: 11px; }
    .promo-banner-tag { font-size: 9px; }
    .promo-banner-cta { font-size: 10px; padding: 5px 10px; }
    .promo-banner-placeholder { width: 44px; min-width: 44px; height: 44px; }
    .promo-banner-img-wrap { width: 48px; min-width: 48px; height: 44px; }
}

/* Floating Support Button - Eye-catching & Animated */
.floating-support-btn {
    position: fixed !important;
    left: unset !important;
    right: 20px !important;
    bottom: 100px !important;
    width: 60px !important;
    height: 60px !important;
    direction: ltr !important;
    background: var(--header-gradient) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 6px 20px rgba(79, 111, 255, 0.45), 0 0 0 0 rgba(79, 111, 255, 0.4) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    z-index: 1050 !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    animation: support-pulse 2s ease-in-out infinite !important;
}
.floating-support-btn:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 8px 25px rgba(79, 111, 255, 0.55), 0 0 0 14px rgba(79, 111, 255, 0) !important;
}
.floating-support-btn:hover .floating-support-icon {
    animation: support-bounce 0.5s ease !important;
}
.floating-support-icon {
    color: white !important;
    font-size: 26px !important;
    animation: support-wiggle 3s ease-in-out infinite !important;
}
@keyframes support-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(79, 111, 255, 0.45), 0 0 0 0 rgba(79, 111, 255, 0.4); }
    50% { box-shadow: 0 8px 28px rgba(79, 111, 255, 0.6), 0 0 0 10px rgba(79, 111, 255, 0); }
}
@keyframes support-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
@keyframes support-wiggle {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-8deg); }
    96% { transform: rotate(8deg); }
}

/* ========== Home: EcomPay-style dashboard (ebuyhubpay) ========== */
body.home-page {
    background: var(--app-bg);
    padding-bottom: 78px;
}

.home-page header.home-header.home-header--ecom {
    display: block !important;
    background: linear-gradient(180deg, #0056c8 0%, var(--ecom-blue) 55%, #003c8f 100%) !important;
    padding: 12px 14px 18px !important;
    box-shadow: 0 10px 28px rgba(0, 74, 173, 0.28);
    border-radius: 0 0 20px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ecom-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecom-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ecom-menu-btn {
    font-size: 20px;
    cursor: pointer;
    color: #fff !important;
}

.ecom-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ecom-logo-square {
    width: 34px;
    height: 34px;
    background: var(--ecom-yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ecom-logo-inner {
    width: 18px;
    height: 18px;
    background: var(--ecom-blue);
    border-radius: 4px;
    transform: rotate(45deg);
}

.ecom-brand-name {
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.ecom-header-location {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    padding: 0 4px;
}

.ecom-header-location i {
    color: #fff;
    flex-shrink: 0;
    font-size: 13px;
}

.ecom-header-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecom-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ecom-header-icon {
    color: #fff !important;
    font-size: 17px;
    text-decoration: none !important;
    position: relative;
    display: flex;
    align-items: center;
}

.ecom-notif-btn .ecom-notif-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--ecom-yellow);
    border-radius: 50%;
    border: 1.5px solid var(--ecom-blue);
}

.ecom-header-pwa {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    padding: 5px 9px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.ecom-header-pwa.ico-only {
    padding: 7px 10px;
    font-size: 14px;
}

.ecom-pwa-txt {
    margin-left: 3px;
}

.ecom-header-login {
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none !important;
    white-space: nowrap;
}

.ecom-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 11px 14px;
    margin-top: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ecom-search-row > .fa-magnifying-glass {
    color: #94a3b8;
    font-size: 15px;
    flex-shrink: 0;
}

.ecom-search-ph {
    flex: 1;
    font-size: 13px;
    color: #94a3b8;
    text-align: left;
}

.ecom-search-tools {
    display: flex;
    gap: 14px;
    color: #64748b;
    font-size: 15px;
    flex-shrink: 0;
}

/* Balance card */
.ecom-balance-card {
    margin: 16px 14px 18px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 74, 173, 0.12);
}

.ecom-balance-gradient {
    background: linear-gradient(125deg, #0a5fd4 0%, var(--ecom-blue) 45%, #003580 100%);
    padding: 20px 18px 18px;
    position: relative;
    overflow: hidden;
}

.ecom-balance-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 85% 15%, #fff 0%, transparent 42%),
        linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 100%);
    pointer-events: none;
}

.ecom-balance-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ecom-balance-rupee {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.ecom-balance-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    font-weight: 500;
}

.ecom-balance-art {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ecom-art-coins {
    display: flex;
    width: 42px;
    height: 48px;
    background: linear-gradient(180deg, #ffd54f 0%, #f9a825 100%);
    border-radius: 8px;
    position: relative;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s;
    color: #fff !important;
}


.ecom-art-coins:active { transform: scale(0.92); }

.ecom-art-coins::before,
.ecom-art-coins::after {
    display: none;
}


.ecom-art-wallet {
    display: flex;
    width: 46px;
    height: 38px;
    background: linear-gradient(180deg, #42a5f5 0%, #1565c0 100%);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.2s;
}

.ecom-art-wallet:active { transform: scale(0.92); }

.ecom-cashback-bar {
    background: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.ecom-cashback-bar .fa-indian-rupee-sign {
    color: #28a745;
    font-size: 14px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: #e8f5e9;
    border-radius: 50%;
}

.ecom-balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    background: #fff;
}

.ecom-act {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.ecom-act-add {
    background: var(--ecom-blue);
    color: #fff !important;
}

.ecom-act-send {
    background: #f1f5f9;
    color: var(--ecom-blue) !important;
    border: 1px solid #e2e8f0;
}

/* Quick Services */
.ecom-quick-services {
    padding: 0 14px 18px;
}

.ecom-sec-title {
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
    color: var(--ecom-blue);
    margin: 0 0 12px 4px;
    letter-spacing: -0.3px;
}

.ecom-qs-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ecom-qs-tile {
    background: #fff;
    border-radius: 14px;
    padding: 12px 6px;
    text-align: center;
    text-decoration: none !important;
    color: #1e293b !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 96px;
    justify-content: flex-start;
}

.ecom-qs-tile span:last-child {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.ecom-qs-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ecom-qs-mob {
    background: #e3f2fd;
    color: #1565c0;
}

.ecom-qs-dth {
    background: #e3f2fd;
    color: #0d47a1;
}

.ecom-qs-elec {
    background: #fff8e1;
    color: #f57f17;
}

.ecom-qs-upi {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Home — Spin & Earn full-width banner */
.ecom-spin-banner-section {
    padding: 0 14px 22px;
}

.ecom-spin-banner-card {
    display: block;
    text-decoration: none !important;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(13, 92, 184, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}

.ecom-spin-banner-card:active {
    transform: scale(0.988);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.ecom-spin-banner-img-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background: #5a9fd4;
    height: clamp(176px, 52vw, 280px);
}

.ecom-spin-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 40%;
}

.ecom-spin-banner-caption {
    padding: 12px 14px 14px;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.3px;
    color: var(--ecom-blue, #0d47a1);
    text-align: center;
}

/* Home — Shop (8 items from shopping_brands) */
.ecom-shop-section {
    padding: 0 14px 20px;
}

.ecom-shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.ecom-shop-title {
    margin-bottom: 0 !important;
}

.ecom-shop-sub {
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    color: #64748b;
}

.ecom-shop-viewall {
    font-size: 13px;
    font-weight: 700;
    color: var(--ecom-blue, #004aad) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.ecom-shop-viewall i {
    font-size: 10px;
    margin-left: 2px;
}

.ecom-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ecom-shop-card {
    background: #fff;
    border-radius: 14px;
    padding: 8px 5px 10px;
    text-align: center;
    text-decoration: none !important;
    color: #1e293b !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.ecom-shop-card-img {
    width: 100%;
    min-height: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.ecom-shop-card-img img {
    max-width: 100%;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.ecom-shop-card-name {
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3px;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecom-shop-card-price {
    font-size: 8px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ecom-blue, #004aad);
}

.ecom-shop-empty {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    padding: 12px;
}

.ecom-shop-empty a {
    color: var(--ecom-blue, #004aad);
    font-weight: 700;
}

.utilities-header .ecom-util-title {
    font-style: italic;
    color: var(--ecom-blue) !important;
    font-weight: 800 !important;
}

/* Bottom nav — 4 tabs */
.bottom-nav--ecom {
    padding: 6px 4px 10px;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
}

.bottom-nav--ecom .nav-item {
    flex: 1;
    max-width: 25%;
    font-size: 10px;
    color: #94a3b8;
    padding-top: 4px;
}

.bottom-nav--ecom .nav-item.active {
    color: var(--ecom-blue);
    font-weight: 700;
}

.bottom-nav--ecom .nav-item.active .nav-icon--home {
    color: var(--ecom-yellow);
}

.bottom-nav--ecom .nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item--wallet {
    position: relative;
}

.nav-wallet-fab {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1a7bff 0%, var(--ecom-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    margin: -18px auto 3px;
    box-shadow: 0 6px 16px rgba(0, 74, 173, 0.35);
    position: relative;
    font-size: 17px;
}

.nav-wallet-plus {
    position: absolute;
    bottom: 5px;
    right: 7px;
    font-size: 8px;
    background: var(--ecom-yellow);
    color: var(--ecom-blue);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 900;
}