/* AdPally v5.1 targeted accessibility, pricing, group, and homepage corrections.
   Existing theme layout and branding are deliberately preserved. */
.tc-root{--tc-green:#5935e8;--ap-purple:#5935e8;--tc-ink:#21162d}
.tc-v51-dashboard-switch{display:flex;align-items:center;gap:14px;max-width:1340px;margin:9px auto 0;padding:0 22px;min-height:38px;color:#4b3180}
.tc-v51-dashboard-switch button{padding:8px 12px;display:flex;gap:8px;align-items:center;background:#5935e8;color:#fff;border:0;border-radius:7px;font-size:12px;cursor:pointer;box-shadow:0 4px 12px #5935e832}
.tc-v51-dashboard-switch b{font-size:12px}.tc-v51-dashboard-switch span{font-size:10px;color:#695480;font-weight:700}
.tc-top .tc-dash-hamburger{display:none!important}
.tc-v51-site-footer{max-width:1340px;margin:42px auto 0;padding:26px 25px;background:#20133b;color:#fff;display:grid;gap:15px}
.tc-v51-site-footer .tc-v51-footer-brand{display:flex;align-items:center;gap:15px}
.tc-v51-footer-brand img{width:auto;max-height:43px;max-width:210px;object-fit:contain}
.tc-v51-footer-brand small{font-size:11px;color:#ffe0ab}
.tc-v51-site-footer nav{display:flex;flex-wrap:wrap;gap:8px 17px}
.tc-v51-site-footer nav button,.tc-v51-site-footer nav a{border:0;background:transparent;color:white;cursor:pointer;text-decoration:none;font-size:12px;padding:5px 2px}
.tc-v51-site-footer>small{color:#b9aed1;font-size:11px}
/* Banner image carousel: neutral community scenes including a free-use Abuja market photograph.
   No text is embedded in the photo so brand copy remains fully readable. */
.tc-hero-photo-v4{background:none!important;animation:none!important;z-index:0!important;overflow:hidden;pointer-events:none}
.tc-hero-photo-v4 i{position:absolute;inset:0;display:block;background-size:cover;background-position:center 46%;opacity:0;animation:apHeroCycle 21s ease-in-out infinite}
.tc-hero-photo-v4 i:nth-child(1){background-image:url('https://images.unsplash.com/photo-1761370980688-8438b7220d0b?auto=format&fit=crop&w=1900&q=80');animation-delay:0s}
.tc-hero-photo-v4 i:nth-child(2){background-image:url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1900&q=80');animation-delay:7s}
.tc-hero-photo-v4 i:nth-child(3){background-image:url('https://images.unsplash.com/photo-1556911220-bff31c812dba?auto=format&fit=crop&w=1900&q=80');animation-delay:14s}
@keyframes apHeroCycle{0%{opacity:0;transform:scale(1.03)}5%,29%{opacity:1}36%,100%{opacity:0;transform:scale(1.11)}}
.tc-hero-backdrop{z-index:1!important;pointer-events:none}.tc-hero-copy-v4{position:relative;z-index:2}
/* Secondary promotional banner has gentle alternating real photographic backdrops. */
.tc-v5-need-spotlight{position:relative;isolation:isolate;overflow:hidden;background:#20133b!important}
.tc-v5-need-spotlight::before,.tc-v5-need-spotlight::after{content:"";position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;opacity:.20;animation:apPromoCycle 18s linear infinite;pointer-events:none}
.tc-v5-need-spotlight::before{background-image:url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1200&q=75')}
.tc-v5-need-spotlight::after{background-image:url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1200&q=75');animation-delay:9s;opacity:0}
@keyframes apPromoCycle{0%,8%{opacity:.0}14%,46%{opacity:.23}52%,100%{opacity:0}}
/* Search goes immediately after banner with real location fields. */
.tc-global-search{height:auto!important;min-height:56px;flex-wrap:wrap!important;align-items:center!important;padding:4px;gap:0}
.tc-global-search>select,.tc-global-search>input{box-sizing:border-box;border:0;outline:0;height:44px;background:white;color:#302345;font-size:12px;padding:8px 10px;min-width:120px;flex:0 0 17%}
.tc-global-search>input[name=term]{flex:1 1 28%;min-width:130px}
.tc-global-search>input[name=city]{flex:1 1 19%;min-width:110px;border-left:1px solid #ede7f5}
.tc-global-search>select[name=country]{border-left:1px solid #ede7f5}
.tc-global-search>button{height:43px!important;min-width:90px!important;white-space:nowrap}
/* Community tiles: images remain photographs if no manager-uploaded group image. */
.tc-v41-gphoto img,.tc-v41-preview-image img{object-fit:cover!important;width:100%;height:100%}
.tc-v51-room-photo{overflow:hidden;display:block;flex-shrink:0}.tc-v51-room-photo img{width:100%;height:100%;object-fit:cover}
/* Ad cards: seller belongs directly under price and group link beside seller message. */
.tc-v51-seller-under-price{display:flex;align-items:center;gap:6px;padding:1px 0 5px;margin:0;border:0;background:none;text-align:left;color:#3d3151;font-size:11px;cursor:pointer;max-width:100%}
.tc-v51-seller-under-price img,.tc-v51-seller-under-price>span:first-child{width:20px;height:20px;border-radius:50%;object-fit:cover;background:#ece7fd;color:#5935e8;display:grid;place-items:center;flex-shrink:0;font-size:11px}
.tc-v51-seller-under-price b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-size:10px;font-weight:700}
.tc-card-actions .tc-v51-group-button{background:#fff!important;color:#5935e8!important;border:1px solid #5935e8!important;font-size:10px!important;white-space:nowrap}
.tc-card-actions .tc-card-message{margin-left:0!important}
/* Compact activity-led buyer requests and real seller auctions. */
.tc-v51-requests-list,.tc-v51-auction-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.tc-v51-request-row,.tc-v51-auction-item{min-width:0;display:flex;gap:9px;align-items:center;text-align:left;border:1px solid #e8ddf4;border-radius:10px;background:#fff;color:#251a34;padding:12px;cursor:pointer}
.tc-v51-request-row span:first-child,.tc-v51-auction-item span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}
.tc-v51-request-row b,.tc-v51-auction-item b{font-size:12px;color:#251a34;line-height:1.3;overflow-wrap:anywhere}
.tc-v51-request-row small,.tc-v51-auction-item small{font-size:10px;color:#665878}
.tc-v51-request-row>strong{font-size:11px;color:#5935e8;text-align:right}
.tc-v51-auction-photo{width:66px;height:60px;flex-shrink:0;overflow:hidden;border-radius:7px;background:#f1eff8}
.tc-v51-auction-photo img{width:100%;height:100%;object-fit:cover}
.tc-v51-auction-item>span:last-child{font-size:18px;color:#5935e8}
/* Group chat: pinned advert stays visible in a compact strip above the chronological conversation. */
.tc-v51-pinned-banner{position:sticky;top:0;z-index:2;background:#fff9ee;border-left:3px solid #ffae42;box-shadow:0 4px 18px #422e6520;border-radius:8px;margin:0 0 12px;padding:8px 10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tc-v51-pinned-banner strong{font-size:11px;color:#54386f;margin-right:6px}
.tc-v51-pinned-banner button{padding:7px 9px;border-radius:7px;border:1px solid #f6cf96;background:white;color:#55327a;font-size:11px;font-weight:700;cursor:pointer;max-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tc-v51-chat-social{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:7px 10px;border-bottom:1px solid #eee7f5}
.tc-v51-chat-social button,.tc-v51-chat-social span{background:#f8f5ff;color:#533d73;border:0;border-radius:5px;padding:5px 6px;font-size:10px;cursor:pointer}
.tc-v51-chat-social span{background:none;cursor:default}
.tc-v51-group-ad .tc-v41-chat-author button{border:0;background:none;padding:0;text-align:left;color:inherit;cursor:pointer}
.tc-v51-group-ad .tc-v41-ad-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.tc-v51-group-ad .tc-v41-chat-details strong{font-size:14px;color:#5935e8}
/* Price rules must be clear and aligned with server-side validation. */
.tc-v51-fixed-price[hidden],.tc-v51-auction-fields[hidden]{display:none!important}
.tc-v51-pricing-help{font-size:12px!important;color:#5a4b72;line-height:1.5!important}
.tc-v51-auction-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f5efff;padding:15px;border-radius:9px;margin:12px 0}
.tc-v51-suggestions{margin:10px 0}.tc-v51-suggestions small{font-size:10px;color:#605373}
.tc-v51-suggestions>div{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}
.tc-v51-suggestions button{border:1px solid #c7aff5;background:#f8f2ff;color:#5935e8;padding:8px 11px;border-radius:7px;cursor:pointer;font-weight:700;font-size:11px}
.tc-v51-auction-closed{background:#f5efff;border-left:3px solid #5935e8;color:#2d2241;padding:13px;border-radius:7px}
.tc-v51-auction-closed p{font-size:12px;color:#605375}
@media(max-width:900px){.tc-global-search>select,.tc-global-search>input[name=city]{flex:1 1 20%}}
@media(max-width:700px){
 .tc-v51-dashboard-switch{padding:0 12px;margin:6px auto;min-height:30px}.tc-v51-dashboard-switch button{padding:7px 9px;font-size:11px}
 .tc-root .tc-hero-v4 .tc-hero-photo-v4{max-width:100%}
 .tc-home-layout .tc-home-search{margin:9px 0 10px!important}
 .tc-global-search{height:auto!important;display:grid!important;grid-template-columns:1fr 1fr;gap:4px!important;padding:6px!important}
 .tc-global-search>.tc-search-kind,.tc-global-search>select,.tc-global-search>input,.tc-global-search>button{min-width:0!important;width:100%!important;max-width:none!important;min-height:37px!important;height:37px!important;margin:0!important;border:1px solid #eee8f5!important;border-radius:6px!important;grid-column:auto;font-size:10px!important;padding:6px 8px!important}
 .tc-global-search>input[name=term]{grid-column:1/-1;order:0}.tc-global-search>button{grid-column:1/-1;order:2;min-height:38px!important;color:#fff!important;background:#5935e8!important}
 .tc-global-search>.tc-search-kind select{font-size:10px!important;width:100%!important;padding:0!important}
 .tc-v51-requests-list,.tc-v51-auction-list{grid-template-columns:1fr}
 .tc-v51-request-row b,.tc-v51-auction-item b{font-size:12px}
 .tc-v51-site-footer{padding:20px 14px 25px;margin:20px 0 0;gap:14px}
 .tc-v51-footer-brand img{max-height:34px;max-width:160px}.tc-v51-footer-brand small{font-size:9px}
 .tc-v51-site-footer nav{gap:5px 11px}.tc-v51-site-footer nav button,.tc-v51-site-footer nav a{font-size:10px}
 .tc-card-actions .tc-v51-group-button{font-size:9px!important;padding:8px 6px!important}
 .tc-v51-chat-social{gap:4px;padding:5px 7px}.tc-v51-chat-social button,.tc-v51-chat-social span{font-size:9px}
 .tc-v51-auction-fields{grid-template-columns:1fr}
 .tc-v51-request-row>strong{font-size:10px;max-width:108px}
}
@media(prefers-reduced-motion:reduce){.tc-hero-photo-v4 i,.tc-v5-need-spotlight::before,.tc-v5-need-spotlight::after{animation:none!important}.tc-hero-photo-v4 i:first-child{opacity:1!important}}

.tc-card-actions .tc-card-message{order:3;flex:1 1 44%}.tc-card-actions .tc-v51-group-button{order:4;flex:1 1 44%}
