/* M5 PWA PREMIUM 1.3.25
   Standalone PWA > own-profile subviews only:
   - W okolicy
   - Ranking
   - Historia żetonów / VIP / SUPER VIP
   - Historia punktów aktywności
   - Otrzymane prezenty
   Hide repeated profile chrome and keep the existing Polecane module above content.
   No PHP/AJAX/business logic changes. */

body.m5pwa-profile-subview-simplified #media5-userprofile > .m5up-cover,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-layout > .m5up-sidebar,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-layout > .m5up-main > .m5up-tabs {
  display:none !important;
}
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-layout {
  display:block !important;
  grid-template-columns:minmax(0,1fr) !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  gap:0 !important;
}
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-layout > .m5up-main {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
body.m5pwa-profile-subview-simplified #media5-userprofile #m5up-ajax-panel,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-nearby-profile-view,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-ranking-profile-view,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-token-history-profile-view,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-points-history-profile-view,
body.m5pwa-profile-subview-simplified #media5-userprofile .m5up-gifts-profile-view {
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Polecane — the same visual system as Konto/Wiadomości */
body.m5pwa-profile-subview-simplified .m5up-featured-strip {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:14px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 0 16px !important;
  padding:20px 19px !important;
  border:1px solid #d0dfed !important;
  border-radius:19px !important;
  background:linear-gradient(180deg,#fff 0%,#f4f9ff 100%) !important;
  box-shadow:0 5px 18px rgba(15,50,80,.06) !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-title {
  width:100% !important;
  min-width:0 !important;
  padding:0 0 12px !important;
  border:0 !important;
  border-bottom:1px solid #dce7f0 !important;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-title strong {
  font-size:21px !important;
  line-height:1.3 !important;
  letter-spacing:.3px;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-title span:not(.m5up-featured-star) {
  font-size:13px !important;
  line-height:1.45 !important;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-items {
  order:0 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:60px;
  flex:0 1 auto !important;
  display:flex;
  align-items:center;
  gap:10px !important;
  padding:10px 2px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  box-sizing:border-box !important;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-empty {
  display:block;
  width:100%;
  padding:10px 0 !important;
  color:#8093a5 !important;
  font-size:14px !important;
  line-height:1.45;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-actions {
  order:1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
}
body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-action {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:45px !important;
  padding:10px 12px !important;
  border-radius:13px !important;
  font-size:14px !important;
  font-weight:800 !important;
  background:#fff !important;
  box-sizing:border-box !important;
}

/* Make internal cards use full width better after sidebar/tab removal. */
body.m5pwa-profile-subview-simplified .m5up-profile-view,
body.m5pwa-profile-subview-simplified .m5up-nearby-card,
body.m5pwa-profile-subview-simplified .m5up-activity-ranking-grid,
body.m5pwa-profile-subview-simplified .m5up-vip-purchase-box,
body.m5pwa-profile-subview-simplified .m5up-voucher-box,
body.m5pwa-profile-subview-simplified .m5up-token-history-card,
body.m5pwa-profile-subview-simplified .m5up-activity-summary,
body.m5pwa-profile-subview-simplified .m5up-activity-chart-card,
body.m5pwa-profile-subview-simplified .m5up-activity-timeline,
body.m5pwa-profile-subview-simplified .m5up-activity-note {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

@media(max-width:460px) {
  body.m5pwa-profile-subview-simplified .m5up-featured-strip {padding:16px 15px !important;}
  body.m5pwa-profile-subview-simplified .m5up-featured-strip .m5up-featured-title strong {font-size:19px !important;}
}
