/* Elbadry Big Sale v16: Meta insights and visual admin controls. */
.social-auth-grid{grid-template-columns:1fr}
.loading-state{padding:48px;text-align:center;color:var(--muted);font-weight:700}

.featured-picker{display:block;border:1px solid #dfe7e3;border-radius:14px;padding:14px;background:#f8fbf9}
.featured-picker-head,.featured-picker-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.featured-picker-head small{display:block;color:var(--muted);margin-top:3px}.featured-picker-head>span{background:#153f34;color:#fff;border-radius:999px;padding:7px 12px;font-size:12px}
.featured-picker-filters{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(160px,.8fr) auto auto;margin:14px 0}
.featured-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:520px;overflow:auto;padding:2px}
.featured-product-option{position:relative;display:grid;grid-template-columns:74px 1fr 24px;align-items:center;gap:10px;padding:8px;border:2px solid transparent;border-radius:12px;background:#fff;cursor:pointer;box-shadow:0 2px 10px rgba(14,50,41,.06)}
.featured-product-option:hover{border-color:#f5b28d}.featured-product-option.selected{border-color:var(--accent);background:#fff7f2}.featured-product-option>input{position:absolute;opacity:0;pointer-events:none}.featured-product-option>img{width:74px;height:58px;object-fit:cover;border-radius:8px;background:#edf2ef}.featured-product-option span{min-width:0}.featured-product-option strong,.featured-product-option small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.featured-product-option small{color:var(--muted);font-size:11px;margin-top:4px}.featured-product-option>b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e8eeeb;color:transparent}.featured-product-option.selected>b{background:var(--accent);color:#fff}

.insights-page{display:grid;gap:16px}.insights-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.insights-toolbar>div:last-child{display:flex;align-items:end;gap:10px}.insights-toolbar label{min-width:150px}
.insight-kpis{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:10px;overflow-x:auto}.insight-kpis article{padding:16px;border:1px solid #dfe7e3;border-radius:14px;background:#fff;min-width:130px}.insight-kpis span,.insight-kpis small{display:block;color:var(--muted)}.insight-kpis strong{display:block;color:#153f34;font-size:26px;margin:5px 0}.insight-kpis small{font-size:11px}
.insight-daily-bars{display:flex;align-items:flex-end;gap:8px;min-height:175px;overflow-x:auto;padding:10px 4px}.insight-day{min-width:42px;text-align:center;display:grid;justify-items:center;gap:3px}.insight-bar{position:relative;width:24px;min-height:4px;border-radius:7px 7px 2px 2px;background:#dce9e4;overflow:hidden}.insight-bar i{position:absolute;left:0;right:0;bottom:0;background:var(--accent)}.insight-day strong{font-size:11px}.insight-day small,.insight-day em{font-size:9px;color:var(--muted);font-style:normal;white-space:nowrap}
.insight-two-column{display:grid;grid-template-columns:2fr 1fr;gap:16px}.insight-products{display:grid;gap:8px}.insight-products article{display:grid;grid-template-columns:58px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px;border:1px solid #e3ebe7;border-radius:10px}.insight-products img{width:58px;height:45px;object-fit:cover;border-radius:7px;background:#edf2ef}.insight-products strong,.insight-products small{display:block}.insight-products small{color:var(--muted);font-size:11px}.insight-products span{font-size:11px;color:var(--muted);text-align:right}.insight-products span b{display:block;color:#153f34;font-size:16px}.device-breakdown{display:grid;gap:10px}.device-breakdown article{display:grid;grid-template-columns:1fr auto;gap:3px;padding:12px;border-radius:10px;background:#f4f8f6}.device-breakdown small{grid-column:1/-1;color:var(--muted)}.event-pill{display:inline-flex;border-radius:999px;background:#eef5f2;color:#165b47;padding:4px 8px;font-size:11px;font-weight:800}

.whatsapp-app{height:calc(100vh - 150px);min-height:600px;display:grid;grid-template-columns:350px minmax(0,1fr);overflow:hidden;border:1px solid #dbe5e1;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(17,57,47,.09)}
.whatsapp-list{display:grid;grid-template-rows:auto auto minmax(0,1fr);border-right:1px solid #dbe5e1;background:#f7faf8}.whatsapp-list>header,.whatsapp-chat>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #dbe5e1;background:#fff}.whatsapp-list h3{margin:0}.whatsapp-search{padding:10px;border-bottom:1px solid #e5ece9}.whatsapp-search input{margin-top:4px}.whatsapp-list [data-whatsapp-list]{overflow:auto}.whatsapp-conversation{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border:0;border-bottom:1px solid #e6edea;background:transparent;text-align:left;cursor:pointer}.whatsapp-conversation:hover,.whatsapp-conversation.active{background:#eaf5f0}.whatsapp-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#1f9d68;color:#fff;font-weight:900}.whatsapp-conversation strong,.whatsapp-conversation small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whatsapp-conversation small{margin-top:4px;color:var(--muted);font-size:11px}.whatsapp-conversation em{display:grid;justify-items:end;gap:6px;font-size:9px;color:var(--muted);font-style:normal}.whatsapp-conversation em b{min-width:20px;height:20px;border-radius:10px;display:grid;place-items:center;background:#1f9d68;color:#fff}.whatsapp-list-empty{padding:25px;text-align:center}
.whatsapp-chat{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:#efe9df}.whatsapp-chat>header strong,.whatsapp-chat>header small{display:block}.whatsapp-chat>header small{color:var(--muted);margin-top:3px}.connection-live{color:#168555;font-weight:800;font-size:12px}.whatsapp-messages{overflow:auto;padding:24px;display:flex;flex-direction:column;gap:8px;background-color:#efe9df;background-image:radial-gradient(rgba(22,84,66,.05) 1px,transparent 1px);background-size:18px 18px}.whatsapp-messages article{max-width:72%;padding:9px 11px;border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}.whatsapp-messages article.outbound{align-self:flex-end;background:#d8f7c9}.whatsapp-messages p{white-space:pre-wrap;margin:0 0 4px;line-height:1.45}.whatsapp-messages small{display:block;text-align:right;color:#6d7b76;font-size:9px}.whatsapp-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;background:#f8faf9;border-top:1px solid #dbe5e1}.whatsapp-composer textarea{min-height:48px;max-height:120px;resize:vertical}.whatsapp-window-note{margin:0;padding:7px 14px;background:#fff8e7;color:#74570a;font-size:10px;text-align:center}.whatsapp-empty{align-self:center;justify-self:center;text-align:center;max-width:360px;color:#60726b}.whatsapp-empty>span{font-size:52px;color:#1f9d68}.empty-chat{text-align:center;color:var(--muted)}.whatsapp-setup{max-width:760px;margin:40px auto;text-align:center}.whatsapp-setup .btn{margin-top:12px}

@media (max-width:1150px){.featured-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-kpis{grid-template-columns:repeat(4,minmax(140px,1fr))}}
@media (max-width:820px){.featured-picker-filters{grid-template-columns:1fr}.featured-product-grid{grid-template-columns:1fr}.insight-two-column{grid-template-columns:1fr}.insights-toolbar{align-items:stretch;flex-direction:column}.insights-toolbar>div:last-child{flex-wrap:wrap}.whatsapp-app{height:auto;min-height:0;grid-template-columns:1fr}.whatsapp-list{height:350px;border-right:0;border-bottom:1px solid #dbe5e1}.whatsapp-chat{min-height:560px}.whatsapp-messages article{max-width:88%}}
