/* ============================================================
   GlowBay Affiliate — Mobile Dashboard
   Brand: pink #ed2165 / orange #FF6B00 / green #12a454
   Radius 18px (cards) / 8px (small) / soft shadow
   ============================================================ */

.gbaff-mob-wrap{
  max-width:100% !important;
  width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  padding:14px 12px 90px;
  background:#f6f7fb;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,"Helvetica Neue",Arial,sans-serif;
  color:#1d1d1f;
  -webkit-text-size-adjust:100%;
}

/* ---------- Header ---------- */
.gbaff-mob-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:linear-gradient(135deg,#ed2165 0%,#ff5e8a 100%);
  border-radius:18px;
  padding:16px 16px;
  color:#fff;
  box-shadow:0 6px 18px rgba(237,33,101,.25);
}
.gbaff-mob-h-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.gbaff-mob-avatar{
  width:46px; height:46px; flex:0 0 46px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  color:#fff; font-weight:800; font-size:18px;
  display:flex; align-items:center; justify-content:center;
  border:2px solid rgba(255,255,255,.5);
}
.gbaff-mob-hi{ font-size:12px; opacity:.92; line-height:1.2; }
.gbaff-mob-name{ font-size:16px; font-weight:800; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gbaff-mob-h-right{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.gbaff-mob-ico{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.18); color:#fff; font-size:18px;
  text-decoration:none;
}
.gbaff-mob-ico:hover,.gbaff-mob-ico:focus{ background:rgba(255,255,255,.32); }

/* ---------- Earnings hero ---------- */
.gbaff-mob-earnings{
  margin-top:14px;
  background:#fff;
  border:1px solid #ffe1ec;
  border-radius:18px;
  padding:18px 16px;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}
.gbaff-mob-earn-main{ display:flex; align-items:baseline; gap:8px; }
.gbaff-mob-earn-label{ font-size:13px; color:#8a8a90; font-weight:600; }
.gbaff-mob-earn-amt{ font-size:30px; font-weight:900; color:#ed2165; line-height:1; }
.gbaff-mob-earn-sub{ margin-top:6px; font-size:12px; color:#9a9aa0; }
.gbaff-mob-earn-sub b{ color:#12a454; }

/* ---------- Stat grid (4 cols) ---------- */
.gbaff-mob-grid4{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:14px;
}
.gbaff-mob-card{
  background:#fff;
  border:1px solid #f0e2e9;
  border-radius:14px;
  padding:14px 12px;
  display:flex; flex-direction:column; gap:4px;
  box-shadow:0 3px 10px rgba(0,0,0,.04);
}
.gbaff-mob-c-val{ font-size:20px; font-weight:800; color:#1d1d1f; }
.gbaff-mob-c-lab{ font-size:12px; color:#8a8a90; font-weight:600; }
.gbaff-mob-c-prod{ color:#FF6B00; }

/* ---------- Bottom nav (sticky) ---------- */
.gbaff-mob-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  max-width:560px; margin:0 auto;
  display:flex; align-items:stretch;
  background:#fff;
  border-top:1px solid #eee;
  box-shadow:0 -4px 16px rgba(0,0,0,.08);
}
.gbaff-mob-nav-item{
  flex:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding:8px 2px 9px;
  font-size:11px; font-weight:700; color:#9a9aa0;
  text-decoration:none;
}
.gbaff-mob-nav-item span{ line-height:1; }
.gbaff-mob-nav-item.active{ color:#ed2165; }
.gbaff-mob-nav-item.active::before{
  content:""; position:absolute; top:0; width:26px; height:3px;
  border-radius:0 0 3px 3px; background:#ed2165;
}

/* ---------- Sections ---------- */
.gbaff-mob-section{
  margin-top:16px;
  background:#fff;
  border:1px solid #f0e2e9;
  border-radius:18px;
  padding:14px 14px 16px;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}
.gbaff-mob-sec-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.gbaff-mob-sec-head h3{ margin:0; font-size:15px; font-weight:800; color:#1d1d1f; }
.gbaff-mob-sec-head a,.gbaff-mob-more{ font-size:12px; font-weight:700; color:#ed2165; text-decoration:none; }

/* ---------- Affiliate link box ---------- */
.gbaff-mob-link-box{ display:flex; flex-direction:column; gap:8px; }
.gbaff-mob-link{
  width:100%; box-sizing:border-box;
  border:1px solid #e7d7df; border-radius:10px;
  padding:11px 12px; font-size:13px; color:#333; background:#fbf7f9;
  outline:none; word-break:break-all;
}
.gbaff-mob-links{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  margin-top:4px; padding:11px 14px; width:100%; box-sizing:border-box;
  background:#ed2165; color:#fff; border-radius:10px;
  font-size:14px; font-weight:800; text-decoration:none;
}
.gbaff-mob-links:hover{ background:#d11857; }

/* ---------- Payout ---------- */
.gbaff-mob-payout-cta{
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:12px; padding:13px; width:100%; box-sizing:border-box;
  background:linear-gradient(135deg,#FF6B00,#ff8a3d); color:#fff;
  border:none; border-radius:12px; font-size:15px; font-weight:800; text-decoration:none;
}
.gbaff-mob-payout-cta:hover{ filter:brightness(1.04); }
.gbaff-mob-payout{
  margin-top:12px; padding-top:12px; border-top:1px dashed #eee;
  font-size:13px; color:#555;
}
.gbaff-mob-pay-stats{ display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; }
.gbaff-mob-pay-stats span{ font-size:12px; color:#777; }
.gbaff-mob-pay-stats b{ color:#12a454; }
.gbaff-mob-pay-form{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.gbaff-mob-pay-form input,.gbaff-mob-pay-form select{
  border:1px solid #e0d0d8; border-radius:10px; padding:11px 12px; font-size:14px;
}
.gbaff-mob-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; background:#ed2165; color:#fff; border:none;
  border-radius:10px; font-size:14px; font-weight:800; cursor:pointer;
}
.gbaff-mob-cta-outline{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:11px 16px; background:#fff; color:#ed2165;
  border:1.5px solid #ed2165; border-radius:10px; font-size:14px; font-weight:800; text-decoration:none;
}

/* ---------- My Collection ---------- */
.gbaff-mob-coll{ display:flex; flex-direction:column; gap:10px; }
.gbaff-mob-coll-item{
  display:flex; align-items:center; gap:10px;
  background:#fbf7f9; border:1px solid #f0e2e9; border-radius:12px; padding:10px;
}
.gbaff-mob-coll-item img,.gbaff-mob-p-img{
  width:48px; height:48px; flex:0 0 48px; object-fit:cover; border-radius:10px; background:#eee;
}
.gbaff-mob-p-info{ min-width:0; flex:1; }
.gbaff-mob-p-name{ font-size:13px; font-weight:700; color:#1d1d1f; line-height:1.3; }
.gbaff-mob-p-meta{ font-size:11px; color:#9a9aa0; margin-top:2px; }
.gbaff-mob-comm{ font-size:13px; font-weight:800; color:#12a454; white-space:nowrap; }

/* ---------- Products ---------- */
.gbaff-mob-products{ display:flex; flex-direction:column; gap:10px; }
.gbaff-mob-product{
  display:flex; align-items:center; gap:10px;
  background:#fbf7f9; border:1px solid #f0e2e9; border-radius:12px; padding:10px;
}
.gbaff-mob-product .gbaff-mob-btn{ margin-left:auto; padding:9px 12px; font-size:13px; }

/* ---------- Orders / activity ---------- */
.gbaff-mob-order{
  display:flex; flex-direction:column; gap:4px;
  background:#fbf7f9; border:1px solid #f0e2e9; border-radius:12px; padding:11px 12px;
}
.gbaff-mob-o-top{ display:flex; align-items:center; justify-content:space-between; }
.gbaff-mob-o-mid{ font-size:13px; color:#333; font-weight:600; }
.gbaff-mob-o-date{ font-size:11px; color:#9a9aa0; }
.gbaff-mob-status{
  font-size:11px; font-weight:800; padding:2px 9px; border-radius:20px;
  background:#fff0f5; color:#ed2165;
}
.gbaff-mob-status.paid{ background:#e7f8ee; color:#12a454; }
.gbaff-mob-status.pending{ background:#fff4e6; color:#FF6B00; }

/* ---------- Notifications ---------- */
.gbaff-mob-notif{ display:flex; flex-direction:column; gap:10px; }
.gbaff-mob-note{
  display:flex; gap:10px; align-items:flex-start;
  background:#fbf7f9; border:1px solid #f0e2e9; border-radius:12px; padding:11px 12px;
}
.gbaff-mob-n-dot{ width:8px; height:8px; border-radius:50%; background:#ed2165; margin-top:6px; flex:0 0 8px; }
.gbaff-mob-n-msg{ font-size:13px; color:#333; line-height:1.4; }
.gbaff-mob-n-date{ font-size:11px; color:#9a9aa0; margin-top:3px; }

/* ---------- Time tabs (sales window) ---------- */
.gbaff-mob-time-tabs{ display:flex; gap:6px; margin-bottom:10px; }
.gbaff-mob-time-tab{
  flex:1; text-align:center; padding:8px; border-radius:10px;
  background:#f3f4f8; color:#777; font-size:12px; font-weight:700; cursor:pointer; border:none;
}
.gbaff-mob-time-tab.active{ background:#ed2165; color:#fff; }
.gbaff-mob-time-body{ font-size:13px; color:#555; }
.gbaff-mob-time-row{ display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed #eee; }
.gbaff-mob-time-row:last-child{ border-bottom:none; }

/* ---------- Profile / badge ---------- */
.gbaff-mob-profile{ display:flex; flex-direction:column; gap:10px; }
.gbaff-mob-badge{
  display:inline-flex; align-items:center; gap:5px; align-self:flex-start;
  background:#ed2165; color:#fff; font-size:12px; font-weight:800;
  padding:4px 12px; border-radius:20px;
}
.gbaff-mob-st-{ /* status prefix holder */ }

/* ---------- Empty / fallback ---------- */
.gbaff-mob-empty{
  padding:40px 20px; text-align:center; color:#9a9aa0; font-size:14px;
  background:#fff; border:1px dashed #e0d0d8; border-radius:18px;
}
.gbaff-mob-empty a{ color:#ed2165; font-weight:700; text-decoration:none; }

/* ---------- Log Out button (below list) ---------- */
.gbaff-mob-logout{
  display:flex !important; align-items:center; justify-content:center !important; gap:8px !important;
  margin-top:18px; padding:13px !important; width:100% !important; box-sizing:border-box !important;
  border:1.5px solid #ed2165 !important; border-radius:12px !important;
  background:#fff !important; color:#ed2165 !important; font-size:15px !important; font-weight:800 !important;
  text-decoration:none !important; cursor:pointer !important;
}
.gbaff-mob-logout i{ font-size:16px !important; }
.gbaff-mob-logout:active{ background:#fff0f5 !important; }

/* Force full-width on affiliate dashboard (page-id-18022) — override theme 820px container */
.page-id-18022 .gb-container{
  max-width:100% !important;
  padding:0 !important;
}
.page-id-18022 .gb-page-content{
  max-width:100% !important;
  padding:0 !important;
}
.page-id-18022 .gb-page{
  padding:0 !important;
}
.page-id-18022 .gbaff-mob-wrap{
  border-radius:0 !important;
}


/* Bulletproof Hide Creator SiteStripe Floating Dock on Product Pages */
#gb-sitestripe-dock, .gb-sitestripe-dock { display: none !important; visibility: hidden !important; pointer-events: none !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
