/* V9.9.0 additive presentation layer (redesign preview approved by owner).
   Presentation only: no auth, data, finance, admin or tracking logic is touched here. */

/* 1) Header wallet chip (shown only when logged in; filled by ek-redesign.js with the same read-only figures as the home wallet card) */
body > header nav .ekWalletChip{display:inline-flex;align-items:center;gap:6px;margin:0;padding:9px 15px;background:#eefaf3;color:#0a7a3d;border:1px solid #bfe3cf;border-radius:25px;font-weight:700;font-size:14px;line-height:1.2;cursor:pointer;white-space:nowrap;box-shadow:none}
body > header nav .ekWalletChip:hover{background:#e2f6ea}
body > header nav .ekWalletChip b{font-weight:800}
@media(max-width:760px){
 body > header nav .ekWalletChip{padding:7px 10px;font-size:12px;gap:4px}
}
@media(max-width:380px){body > header nav .ekWalletChip{padding:6px 8px;font-size:11.5px}}

/* 2) Searchable partner-brand picker (progressive enhancement of #ek970Brand; native <select> stays the source of truth) */
.ekCombo{position:relative;margin-top:5px}
.ekCombo>select.ekComboNative{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none;margin:0}
.ekComboBtn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin:0;padding:12px;text-align:left;background:#fff;color:#0b1b3f;border:1px solid #cbdaf0;border-radius:10px;font:inherit;font-weight:500}
.ekComboBtn:hover,.ekComboBtn:focus-visible{border-color:#0962df;outline:0}
.ekComboBtn.ekPlaceholder>span:first-child{color:#6a7894}
.ekComboPanel{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;background:#fff;border:1px solid #cfdcf4;border-radius:14px;box-shadow:0 16px 40px #0b1b3f2e;padding:8px}
.ekComboPanel[hidden]{display:none}
.ekComboSearch{display:block;width:100%;margin:0 0 6px;padding:11px 12px;border:1px solid #cbdaf0;border-radius:9px;font:inherit;font-size:14.5px;background:#fff;color:#0b1b3f}
.ekComboList{max-height:220px;overflow:auto}
.ekComboOpt{padding:10px 12px;border-radius:9px;cursor:pointer;font-weight:600;color:#143267}
.ekComboOpt.hl,.ekComboOpt:hover{background:#eef4ff}
.ekComboOpt.sel{color:#0a7a3d}
.ekComboOpt.sel::after{content:" ✓"}
.ekComboEmpty{padding:14px;text-align:center;color:#5a6784;font-size:14px}

/* 3) Top Rated Deals header: title + View All on one row, subtitle below (all screen sizes) */
body #home .ek970-tr-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px}
body #home .ek970-tr-head>div{display:contents}
body #home .ek970-tr-head h2{grid-column:1;grid-row:1}
body #home .ek970-tr-head p{grid-column:1/-1;grid-row:2;margin:0}
body #home .ek970-tr-head .ek970-tr-all{grid-column:2;grid-row:1}

/* 4) Commission highlighted on every deal card so publishers see the earning first */
body .ek956-card .ek956-commission{background:#eefaf3;border:1px solid #cdeedb;border-radius:12px;padding:10px 14px;color:#33415f}
body .ek956-card .ek956-commission strong{color:#0a7a3d}

/* 5) Footer: spacing, social icons, mobile accordion (Quick Links / Follow Us / Contact & Support) */
.ekFooter{padding-top:46px}
.ekFooterGrid{grid-template-columns:2fr 1fr 1.1fr 1.5fr}
.ekFooterGrid>section:nth-child(3) a{display:flex;align-items:center;gap:10px}
.ekFooterGrid>section:nth-child(3) a::before{content:"🔗";width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;background:#1d4079;color:#fff;font-size:12px;font-weight:700}
.ekFooterGrid>section:nth-child(3) a[href*="facebook."]::before{content:"f"}
.ekFooterGrid>section:nth-child(3) a[href*="instagram."]::before{content:"IG";font-size:11px}
.ekFooterGrid>section:nth-child(3) a[href*="youtube."]::before,.ekFooterGrid>section:nth-child(3) a[href*="youtu.be"]::before{content:"▶"}
.ekFooterGrid>section:nth-child(3) a[href*="linkedin."]::before{content:"in"}
.ekFooterGrid>section:nth-child(3) a[href*="t.me"]::before,.ekFooterGrid>section:nth-child(3) a[href*="telegram"]::before{content:"TG";font-size:11px}
.ekFooterGrid>section:nth-child(3) a[href*="twitter."]::before,.ekFooterGrid>section:nth-child(3) a[href*="x.com"]::before{content:"X"}
@media(max-width:700px){
 .ekFooterGrid{grid-template-columns:1fr;gap:0}
 .ekFooterGrid>section:first-child{margin-bottom:16px}
 .ekFooterGrid>section:not(:first-child){border-top:1px solid #2c4a77}
 .ekFooterGrid>section:not(:first-child)>h4{margin:0;padding:17px 0;display:flex;justify-content:space-between;align-items:center;cursor:pointer}
 .ekFooterGrid>section:not(:first-child)>h4::after{content:"▾";transition:transform .2s}
 .ekFooterGrid>section.ekOpen>h4::after{transform:rotate(180deg)}
 .ekFooterGrid>section:not(:first-child)>*:not(h4){display:none}
 .ekFooterGrid>section.ekOpen>*:not(h4){display:block}
 .ekFooterGrid>section.ekOpen:nth-child(3)>a{display:flex}
 .ekFooterGrid>section.ekOpen{padding-bottom:10px}
 .ekFooter{padding-top:34px}
}
