/* LetsEarn.fun Professional Rescue UI
   Clean Facebook-style feed + mobile app header/nav + proper reels overlay.
*/
:root{
  --lef-bg:#f0f2f5;
  --lef-card:#fff;
  --lef-text:#050505;
  --lef-muted:#65676b;
  --lef-line:#dddfe2;
  --lef-blue:#1877f2;
  --lef-soft-blue:#e7f3ff;
  --lef-hover:#f2f3f5;
  --lef-radius:14px;
  --lef-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
html,body{background:var(--lef-bg)!important;color:var(--lef-text)!important;font-family:var(--lef-font)!important;margin:0!important;}
*{box-sizing:border-box!important}
a{color:var(--lef-blue);}
body{padding-bottom:72px!important;}
body.logged-in{padding-top:62px!important;}
body:not(.logged-in){padding-top:62px!important;}
/* Hide theme chrome for app-like pages */
.site-header,.main-header-bar,.ast-mobile-header-wrap,header#masthead,.wp-site-blocks>header,.elementor-location-header{display:none!important;}
/* App header */
.lef-app-header{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:99999!important;height:62px!important;padding:8px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;background:#fff!important;border-bottom:1px solid var(--lef-line)!important;box-shadow:0 1px 4px rgba(0,0,0,.10)!important;}
.lef-app-brand,.lef-app-user{display:flex!important;align-items:center!important;gap:10px!important;text-decoration:none!important;min-width:0!important;color:var(--lef-text)!important;}
.lef-app-brand span{width:42px!important;height:42px!important;border-radius:12px!important;background:linear-gradient(135deg,#7c3cff,#00c8ff)!important;color:#fff!important;display:grid!important;place-items:center!important;font-weight:900!important;font-size:13px!important;}
.lef-app-brand-logo img,.lef-app-user img{width:42px!important;height:42px!important;border-radius:50%!important;object-fit:cover!important;flex:0 0 auto!important;}
.lef-app-brand b{font-size:18px!important;color:#050505!important;font-weight:900!important;white-space:nowrap!important;}
.lef-app-user span{display:flex!important;flex-direction:column!important;line-height:1.1!important;min-width:0!important;}
.lef-app-user b{font-size:14px!important;color:#050505!important;max-width:110px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.lef-app-user small{font-size:12px!important;color:var(--lef-muted)!important;margin-top:3px!important;}
.lef-app-header-btn,.lef-login-btn,.lef-register-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:9px 14px!important;border-radius:999px!important;background:var(--lef-blue)!important;color:#fff!important;text-decoration:none!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important;white-space:nowrap!important;}
.lef-login-btn{background:#e4e6eb!important;color:#050505!important;}.lef-auth-links{display:flex!important;gap:8px!important;align-items:center!important;}
/* Layout */
.lef-wrap,.lef-feed,.lef-dashboard-clean,.lef-profile-page,.lef-reels-wrap,.lef-v40-reels-wrap,.lef-new-reels-page{width:100%!important;max-width:680px!important;margin:0 auto!important;padding:10px 10px 88px!important;background:var(--lef-bg)!important;color:var(--lef-text)!important;}
.lef-card,.lef-form,.lef-post,.lef-clean-balance,.lef-clean-status,.lef-clean-mini,.lef-creator-card,.lef-notifications,.lef-subscription{background:#fff!important;color:#050505!important;border:1px solid var(--lef-line)!important;border-radius:var(--lef-radius)!important;box-shadow:0 1px 2px rgba(0,0,0,.08)!important;}
.lef-card{padding:14px!important;margin:10px 0!important;}.lef-card h1,.lef-card h2,.lef-card h3,.lef-section-title{color:#050505!important;margin-top:0!important;}.lef-muted,.lef-card small,.lef-card p{color:var(--lef-muted)!important;}
/* Dashboard */
.lef-clean-hero,.lef-hero{background:#fff!important;border:1px solid var(--lef-line)!important;border-radius:14px!important;padding:16px!important;box-shadow:0 1px 2px rgba(0,0,0,.08)!important;color:#050505!important;margin:10px 0!important;}
.lef-clean-hero h1,.lef-hero h1{font-size:24px!important;line-height:1.1!important;margin:0 0 5px!important;color:#050505!important;}.lef-clean-hero p,.lef-hero p{font-size:13px!important;margin:0!important;color:var(--lef-muted)!important;}
.lef-clean-summary,.lef-clean-mini-grid,.lef-creator-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:10px!important;margin:10px 0!important;}
.lef-clean-balance,.lef-clean-status,.lef-clean-mini,.lef-creator-box{padding:12px!important;background:#fff!important;border:1px solid var(--lef-line)!important;border-radius:14px!important;box-shadow:0 1px 2px rgba(0,0,0,.06)!important;}
.lef-clean-balance span,.lef-clean-status span,.lef-clean-mini span,.lef-creator-box span{display:block!important;color:var(--lef-muted)!important;font-size:12px!important;font-weight:700!important;margin-bottom:5px!important;}.lef-clean-balance strong,.lef-clean-status strong,.lef-clean-mini b,.lef-creator-box strong{display:block!important;color:#050505!important;font-size:22px!important;line-height:1.1!important;}
.lef-clean-actions{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:8px!important;margin:10px 0!important;}.lef-clean-actions a{display:flex!important;justify-content:center!important;align-items:center!important;min-height:40px!important;border-radius:10px!important;background:var(--lef-soft-blue)!important;color:var(--lef-blue)!important;text-decoration:none!important;font-weight:800!important;font-size:13px!important;}
.lef-creator-badge{font-size:16px!important;font-weight:800!important;color:#050505!important;margin-bottom:8px!important;}
/* Forms */
.lef-form input,.lef-form textarea,.lef-form select,.lef-comment-input,.lef-copy-box input{width:100%!important;background:#f0f2f5!important;color:#050505!important;border:1px solid var(--lef-line)!important;border-radius:10px!important;padding:10px 12px!important;font-size:14px!important;margin:7px 0!important;outline:none!important;}.lef-form textarea{min-height:90px!important;resize:vertical!important;}.lef-form button,.lef-comment-submit,.lef-copy-btn,.lef-small-btn,.lef-danger-btn,.lef-follow-btn,.lef-mark-notifications-read{border:0!important;border-radius:9px!important;background:var(--lef-blue)!important;color:#fff!important;padding:10px 14px!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;}
/* Feed */
.lef-feed{display:block!important;}.lef-feed-tabs{display:none!important;}.lef-post{padding:0!important;margin:10px 0!important;overflow:hidden!important;}
.lef-post-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important;background:#fff!important;}
.lef-post-author{display:flex!important;align-items:center!important;gap:9px!important;text-decoration:none!important;color:#050505!important;min-width:0!important;}.lef-post-author span{display:flex!important;flex-direction:column!important;line-height:1.18!important;min-width:0!important;}.lef-post-author b{font-size:14px!important;color:#050505!important;max-width:180px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}.lef-post-author small{font-size:12px!important;color:var(--lef-muted)!important;margin-top:3px!important;}
.lef-avatar-sm,.lef-post-author img{width:40px!important;height:40px!important;min-width:40px!important;border-radius:50%!important;object-fit:cover!important;}.lef-avatar-lg{width:92px!important;height:92px!important;border-radius:50%!important;object-fit:cover!important;}
.lef-creator-inline{display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:160px!important;margin-top:3px!important;padding:2px 8px!important;border-radius:999px!important;background:#eef3ff!important;color:var(--lef-blue)!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important;}
.lef-post-head .lef-follow-btn{flex:0 0 auto!important;background:var(--lef-soft-blue)!important;color:var(--lef-blue)!important;border-radius:999px!important;padding:7px 12px!important;font-size:12px!important;}.lef-post-head .lef-follow-btn.lef-done,.lef-done{background:#e4e6eb!important;color:#050505!important;}
.lef-post>p{margin:0!important;padding:0 12px 10px!important;color:#050505!important;font-size:15px!important;line-height:1.45!important;background:#fff!important;}.lef-own-post{display:inline-flex!important;margin:0 12px 10px!important;padding:5px 9px!important;border-radius:999px!important;background:#f0f2f5!important;color:var(--lef-muted)!important;font-size:12px!important;font-weight:700!important;}
.lef-post .lef-media,.lef-post img.lef-media,.lef-post video.lef-media{width:100%!important;display:block!important;margin:0!important;border-radius:0!important;background:#000!important;}.lef-post img.lef-media{height:auto!important;max-height:520px!important;object-fit:contain!important;}.lef-post video.lef-media{height:280px!important;max-height:360px!important;object-fit:cover!important;}
.lef-watch-link{display:inline-flex!important;margin:9px 12px!important;padding:7px 10px!important;border-radius:8px!important;background:var(--lef-soft-blue)!important;color:var(--lef-blue)!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important;box-shadow:none!important;}
.lef-actions{display:none!important;}.lef-stats-actions{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:0!important;padding:4px 8px!important;margin:0!important;border-top:1px solid var(--lef-line)!important;border-bottom:1px solid var(--lef-line)!important;background:#fff!important;}.lef-stat-action,.lef-stats-actions button{height:36px!important;min-height:36px!important;padding:0 4px!important;margin:0!important;border:0!important;border-radius:8px!important;background:#fff!important;color:var(--lef-muted)!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;}.lef-stat-action b,.lef-stats-actions button b{color:var(--lef-muted)!important;font-size:12px!important;}.lef-stat-action:hover{background:var(--lef-hover)!important;}.lef-stat-action.lef-done,.lef-stat-action:disabled{background:var(--lef-soft-blue)!important;color:var(--lef-blue)!important;opacity:1!important;}
.lef-comment-box{display:flex!important;align-items:center!important;gap:8px!important;padding:8px 12px 10px!important;margin:0!important;background:#fff!important;}.lef-comment-box input,.lef-comment-input{flex:1!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0 13px!important;border:0!important;border-radius:999px!important;background:#f0f2f5!important;color:#050505!important;font-size:14px!important;}.lef-comment-submit{height:38px!important;min-height:38px!important;width:auto!important;padding:0 13px!important;border-radius:999px!important;}
.lef-comments{display:none!important;padding:0 12px 10px!important;max-height:260px!important;overflow:auto!important;background:#fff!important;}.lef-post.show-comments .lef-comments,.lef-reel.show-comments .lef-comments,.lef-v40-reel.show-comments .lef-v40-comment-panel{display:block!important;}.lef-comments p{width:max-content!important;max-width:92%!important;margin:5px 0!important;padding:8px 10px!important;border-radius:16px!important;background:#f0f2f5!important;color:#050505!important;font-size:13px!important;line-height:1.35!important;}
.lef-notice,.lef-success,.lef-error,.lef-warning{border-radius:10px!important;padding:10px 12px!important;margin:10px 0!important;font-size:13px!important;font-weight:700!important;}.lef-notice{background:#e7f3ff!important;color:#1877f2!important;border:1px solid #cfe2ff!important;}.lef-success{background:#e8f5e9!important;color:#137333!important;border:1px solid #cce8cf!important;}.lef-error{background:#fdecea!important;color:#b3261e!important;border:1px solid #f5c2bd!important;}.lef-warning{background:#fff8e1!important;color:#8a5a00!important;border:1px solid #ffe7a3!important;}
/* Profile */
.lef-profile-cover{height:120px!important;border-radius:0 0 14px 14px!important;background:#dbeafe!important;background-size:cover!important;background-position:center!important;}.lef-profile-card{display:flex!important;align-items:center!important;gap:12px!important;margin:-34px 10px 10px!important;padding:12px!important;background:#fff!important;}.lef-profile-card .lef-avatar-lg,.lef-profile-card img{width:86px!important;height:86px!important;border-radius:50%!important;object-fit:cover!important;border:4px solid #fff!important;flex:0 0 auto!important;}.lef-profile-card h2{margin:0 0 4px!important;color:#050505!important;font-size:22px!important;line-height:1.1!important;word-break:normal!important;white-space:normal!important;}.lef-profile-card p{margin:0!important;color:var(--lef-muted)!important;font-size:14px!important;line-height:1.3!important;}.lef-profile-actions{display:flex!important;gap:8px!important;margin-top:8px!important;}.lef-profile-stats-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:8px!important;margin:10px!important;}.lef-profile-stat-card{padding:10px 6px!important;min-height:auto!important;text-align:center!important;margin:0!important;}.lef-profile-stat-card h3{margin:0 0 4px!important;color:var(--lef-muted)!important;font-size:12px!important;font-weight:700!important;}.lef-profile-stat-card strong{display:block!important;color:#050505!important;font-size:18px!important;line-height:1.1!important;}
/* Reels v40 */
.lef-v40-reels-wrap,.lef-reels-wrap{max-width:520px!important;background:#000!important;padding:0 0 72px!important;}.lef-v40-reels-header,.lef-reels-title{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:10px 12px!important;background:#fff!important;color:#050505!important;border-bottom:1px solid var(--lef-line)!important;}.lef-v40-reels-header strong,.lef-reels-title h2{font-size:16px!important;margin:0!important;color:#050505!important;}.lef-v40-reels-header span,.lef-reels-title p{display:block!important;color:var(--lef-muted)!important;font-size:12px!important;margin:2px 0 0!important;}.lef-v40-reels-header a{background:var(--lef-blue)!important;color:#fff!important;text-decoration:none!important;border-radius:999px!important;padding:7px 11px!important;font-weight:800!important;font-size:12px!important;}
.lef-reel,.lef-v40-reel{position:relative!important;width:100%!important;height:calc(100vh - 134px)!important;min-height:540px!important;margin:0 auto 10px!important;overflow:hidden!important;background:#000!important;border-radius:0!important;border:0!important;box-shadow:none!important;}.lef-reel-video,.lef-v40-video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;background:#000!important;display:block!important;z-index:1!important;}.lef-reel:after,.lef-v40-reel:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,0) 42%,rgba(0,0,0,.72))!important;z-index:2!important;pointer-events:none!important;}
.lef-v40-reel-top{position:absolute!important;left:12px!important;top:12px!important;z-index:5!important;display:flex!important;gap:6px!important;align-items:center!important;}.lef-v40-reel-top span,.lef-v40-reel-top b{background:rgba(0,0,0,.55)!important;color:#fff!important;border-radius:999px!important;padding:5px 8px!important;font-size:11px!important;}
.lef-reel-actions,.lef-v40-reel-actions{position:absolute!important;right:10px!important;bottom:110px!important;z-index:10!important;display:flex!important;flex-direction:column!important;gap:10px!important;width:auto!important;}.lef-reel-actions button,.lef-v40-reel-actions button{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;padding:0!important;margin:0!important;border-radius:50%!important;background:rgba(0,0,0,.62)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:0 6px 18px rgba(0,0,0,.25)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;}.lef-v40-reel-actions button span{font-size:19px!important;line-height:1!important;}.lef-v40-reel-actions button b{font-size:10px!important;color:#fff!important;margin-top:3px!important;}.lef-reel-watch{background:linear-gradient(135deg,#7c3cff,#00c8ff)!important;color:#fff!important;}
.lef-v40-reel-info,.lef-reel-overlay{position:absolute!important;left:12px!important;right:72px!important;bottom:22px!important;z-index:6!important;color:#fff!important;background:transparent!important;padding:0!important;}.lef-v40-user{display:flex!important;align-items:center!important;gap:8px!important;color:#fff!important;text-decoration:none!important;margin-bottom:6px!important;}.lef-v40-user b,.lef-reel-overlay h3{color:#fff!important;font-size:15px!important;margin:0!important;text-shadow:0 2px 8px rgba(0,0,0,.6)!important;}.lef-v40-user small{display:block!important;color:rgba(255,255,255,.78)!important;font-size:11px!important;}.lef-v40-reel-info p,.lef-reel-overlay p{color:#fff!important;font-size:13px!important;line-height:1.35!important;margin:0!important;text-shadow:0 2px 8px rgba(0,0,0,.65)!important;}.lef-v40-reel-info em{display:inline-flex!important;color:#fff!important;background:rgba(0,0,0,.55)!important;border-radius:999px!important;padding:4px 8px!important;font-size:11px!important;margin-top:5px!important;}
.lef-v40-comment-panel,.lef-reel-comment{display:none!important;position:absolute!important;left:10px!important;right:10px!important;bottom:10px!important;z-index:12!important;background:rgba(255,255,255,.96)!important;border-radius:16px!important;padding:8px!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important;}.lef-v40-reel.show-comments .lef-v40-comment-panel{display:block!important;}.lef-v40-comment-panel .lef-comment-box,.lef-reel-comment{display:flex!important;position:static!important;background:transparent!important;padding:0!important;box-shadow:none!important;border-radius:0!important;}.lef-v40-comment-panel .lef-comments{display:block!important;background:transparent!important;padding:6px 0 0!important;max-height:130px!important;}
/* Bottom nav */
.lef-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:99998!important;height:60px!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;background:#fff!important;border-top:1px solid var(--lef-line)!important;box-shadow:0 -2px 10px rgba(0,0,0,.12)!important;}.lef-bottom-nav a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;text-decoration:none!important;color:var(--lef-muted)!important;font-size:11px!important;font-weight:700!important;}.lef-bottom-nav a span{font-size:20px!important;line-height:1!important;}.lef-bottom-nav a.active{color:var(--lef-blue)!important;background:var(--lef-soft-blue)!important;}.lef-fab-upload{position:fixed!important;right:18px!important;bottom:74px!important;z-index:99997!important;width:54px!important;height:54px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:var(--lef-blue)!important;color:#fff!important;font-size:28px!important;text-decoration:none!important;box-shadow:0 6px 18px rgba(24,119,242,.35)!important;}
.lef-toast{position:fixed!important;left:50%!important;bottom:82px!important;transform:translateX(-50%)!important;z-index:999999!important;background:#050505!important;color:#fff!important;padding:10px 14px!important;border-radius:999px!important;font-size:13px!important;font-weight:700!important;max-width:92vw!important;text-align:center!important;}
/* Utility/admin tables */
.lef-history-table{width:100%!important;border-collapse:collapse!important;font-size:13px!important;}.lef-history-table th,.lef-history-table td{padding:8px!important;border-bottom:1px solid var(--lef-line)!important;text-align:left!important;color:#050505!important;}.lef-notification-item,.lef-history-row{padding:10px!important;border-radius:10px!important;background:#f7f8fa!important;border:1px solid var(--lef-line)!important;color:#050505!important;margin:6px 0!important;}
@media(max-width:600px){.lef-wrap,.lef-feed,.lef-dashboard-clean,.lef-profile-page{padding:8px 8px 84px!important;}.lef-app-brand b{font-size:16px!important;}.lef-app-user b{max-width:86px!important;}.lef-app-header-btn,.lef-login-btn,.lef-register-btn{padding:8px 11px!important;font-size:12px!important;}.lef-post video.lef-media{height:240px!important;}.lef-clean-summary,.lef-clean-mini-grid{grid-template-columns:repeat(2,1fr)!important;}.lef-comment-box{display:grid!important;grid-template-columns:1fr auto!important;}.lef-profile-stats-grid{grid-template-columns:repeat(2,1fr)!important;}.lef-profile-card h2{font-size:20px!important;}.lef-reel,.lef-v40-reel{height:calc(100vh - 122px)!important;min-height:520px!important;}.lef-reel-actions,.lef-v40-reel-actions{right:8px!important;bottom:100px!important;gap:9px!important;}.lef-reel-actions button,.lef-v40-reel-actions button{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;}.lef-v40-reel-info,.lef-reel-overlay{right:64px!important;bottom:20px!important;}.lef-post-author b{max-width:150px!important;}}
/* Reels bottom buttons spacing fix */
.lef-reel-actions,
.lef-new-reel-actions,
.lef-v40-reel-actions{
  bottom:150px!important;
  right:14px!important;
  gap:14px!important;
}

.lef-reel-actions button,
.lef-new-reel-actions button,
.lef-v40-reel-actions button{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  margin-bottom:6px!important;
}

.lef-reel-comment{
  bottom:72px!important;
  left:12px!important;
  right:12px!important;
}

.lef-reel .lef-comments{
  bottom:122px!important;
  max-height:110px!important;
}
.lef-new-reel{
    position:relative;
}

.lef-reel-bottom-ad{
    position:absolute;
    left:12px;
    right:75px;
    bottom:18px;
    z-index:99999;
}

.lef-reel-inline-ad{
    margin:18px auto;
    max-width:420px;
    padding:12px;
}
.lef-reel-bottom-ad{
    position:absolute;
    left:12px;
    right:75px;
    bottom:18px;
    z-index:99999;
    max-height:140px;
    background:rgba(0,0,0,.75);
    border-radius:14px;
    overflow:hidden;
}

.lef-reel-bottom-ad iframe{
    width:100% !important;
    height:120px !important;
}

.lef-ad-close{
    position:absolute;
    top:4px;
    right:4px;
    width:24px;
    height:24px;
    border-radius:50%;
    border:0;
    background:rgba(0,0,0,.8);
    color:#fff;
    z-index:100000;
    font-size:18px;
    line-height:20px;
}
.lef-new-reel-actions{
    display:flex !important;
    gap:8px !important;
    margin:10px 0 8px !important;
    padding:0 4px !important;
    align-items:center !important;
}

.lef-new-reel-actions button{
    width:auto !important;
    min-width:44px !important;
    height:38px !important;
    padding:6px 10px !important;
    border:0 !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.92) !important;
    color:#111827 !important;
    font-size:18px !important;
    font-weight:700 !important;
    box-shadow:0 4px 14px rgba(0,0,0,.12) !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    line-height:1 !important;
}

.lef-new-reel-actions button small{
    font-size:12px !important;
    color:#374151 !important;
    font-weight:700 !important;
    margin-left:2px !important;
}

.lef-new-reel-actions .lef-reel-watch{
    background:linear-gradient(135deg,#2563eb,#06b6d4) !important;
    color:#fff !important;
}

.lef-new-reel-actions .lef-reel-watch small{
    color:#fff !important;
}