/* V31: layout-only Home update. Other screens retain V30 styles. */
#screenHome{background:#ededed;padding:0 1px 18px}
#screenHome .home-banner{margin:14px 0 12px;border-radius:13px;box-shadow:none}
#screenHome .quick-actions{margin:0 0 12px;padding:17px 6px 13px;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:0;border-radius:18px;background:#fff;box-shadow:none}
#screenHome .quick-actions button,#screenHome .quick-actions a.quick-withdraw-link{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:6px;padding:0 1px 2px;background:transparent;border:0;color:#448cc5;font-size:13px;font-weight:500;text-decoration:none;line-height:1.3;white-space:nowrap}
#screenHome .quick-icon{height:44px;display:grid;place-items:center;color:#73ade5}
#screenHome .quick-icon svg,#screenHome .quick-actions button .quick-icon svg{height:38px;width:38px;fill:none;stroke:#73ade5;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#screenHome .quick-recharge .quick-icon svg{color:#73ade5}
#screenHome .sample-strip{text-align:center;font-size:10.5px;color:#777;margin:1px 6px 10px;line-height:1.3}
#screenHome .product-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#screenHome .product-card.product-row-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:13px 13px 14px;background:#fff;border:0;border-radius:18px;box-shadow:0 1px 2px #0000000a;overflow:hidden}
#screenHome .product-card-main{display:grid;grid-template-columns:42% minmax(0,1fr);gap:12px;align-items:stretch;min-height:0}
#screenHome .product-cover{position:relative;aspect-ratio:auto;min-height:190px;width:100%;background:#f7b663;border-radius:8px;overflow:hidden}
#screenHome .product-cover:after{height:25%;background:linear-gradient(transparent,#0003)}
#screenHome .product-cover img{width:100%;height:100%;min-height:190px;object-fit:cover;object-position:center}
#screenHome .product-photo-label{position:absolute;z-index:1;bottom:7px;left:4px;right:4px;color:#fff;font-size:15px;text-align:center;text-shadow:0 1px 4px #000b}
#screenHome .product-card-details{min-width:0;display:flex;flex-direction:column;gap:6px}
#screenHome .product-card-details h3{font-size:16.5px;line-height:1.3;color:#202328;margin:1px 0 0;font-weight:700;overflow-wrap:anywhere}
#screenHome .product-card-details .plan-price{text-align:left;color:#ef690c;font-weight:750;font-size:20px;padding:0;margin:1px 0 3px}
#screenHome .product-stats{display:grid;gap:6px;margin-top:auto;padding:0}
#screenHome .product-stats div{display:flex;justify-content:space-between;gap:5px;align-items:center;background:#fff3e6;border-radius:8px;min-height:29px;padding:5px 8px;color:#94603c;font-size:12px}
#screenHome .product-stats b{font-size:12px;color:#9e4a14;white-space:nowrap;font-weight:550}
#screenHome .product-card .buy-btn{display:flex;align-items:center;justify-content:center;gap:12px;align-self:stretch;width:100%;max-width:none;min-height:46px;padding:9px 12px;border-radius:8px;font-size:15px;line-height:1.2;background:linear-gradient(100deg,#ff9b1a,#f05d04);box-shadow:none;color:#fff}
#screenHome .product-card .buy-btn:not(.inactive){border:0}
#screenHome .product-card .buy-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#screenHome .product-card .buy-btn.inactive{background:#c9cbd1;color:#fff;cursor:not-allowed}
#screenHome .product-card .plan-unavailable{font-size:14px;text-align:left;padding:12px 0;color:#777}
/* Five lower nav icons shaped like the sample: filled home, products, family tree, group, profile. */
.dashboard .bottom-nav{background:#fff;border-top:1px solid #dfdfdf;box-shadow:none;min-height:72px;max-width:680px}
.dashboard .bottom-nav .nav-item{gap:4px;font-size:12px;color:#959595;min-height:56px}
.dashboard .bottom-nav .nav-item svg{width:29px;height:29px;stroke:currentColor;stroke-width:1.7;fill:none}
.dashboard .bottom-nav .nav-item.active{color:#ec6508}
.dashboard .bottom-nav .nav-item[data-nav="home"].active svg{background:#f5780c;color:#fff;border-radius:999px;padding:5px;width:43px;height:43px;margin-top:-13px;box-shadow:0 0 0 6px #fff}
@media(max-width:380px){
 #screenHome .product-card.product-row-card{padding:11px;gap:9px}
 #screenHome .product-card-main{grid-template-columns:40% minmax(0,1fr);gap:9px}
 #screenHome .product-cover,#screenHome .product-cover img{min-height:166px}
 #screenHome .product-card-details h3{font-size:14.5px}
 #screenHome .product-card-details .plan-price{font-size:18px}
 #screenHome .product-stats div{font-size:10.8px;padding:4px 6px;min-height:25px}
 #screenHome .product-stats b{font-size:11px}
 #screenHome .quick-actions button,#screenHome .quick-actions a.quick-withdraw-link{font-size:11.5px}
 #screenHome .quick-icon svg,#screenHome .quick-actions button .quick-icon svg{width:33px;height:33px}
}
/* Fit the shorter reference banner without cropping user-provided Sprite pictures. */
#screenHome .home-banner.mirinda-carousel .banner-slides{aspect-ratio:1.85 / 1}
#screenHome .home-banner.mirinda-carousel .banner-slide{object-fit:contain;object-position:center;background:#ed790f}
/* Product artwork must stay fully visible, including the writing at the upper edge. */
#screenHome .product-cover{background:#ef8717}
#screenHome .product-cover img{object-fit:contain;background:#ef8717}
