/* VF_MOBILE_FIT_CONVERT_PICKER_V26
 * Mobile-only fit repairs for Earn + USDT Radar + Convert.
 * Desktop layout and all financial/backend behavior remain unchanged.
 */

@media(max-width:930px){
  html{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  body.vf-mobile-fit-earn,
  body.vf-mobile-fit-radar,
  body.vf-mobile-fit-convert{
    width:100%;
    max-width:100%;
    overflow-x:hidden !important;
  }

  body.vf-mobile-fit-earn .vf-app,
  body.vf-mobile-fit-radar .vf-app,
  body.vf-mobile-fit-convert .vf-app,
  body.vf-mobile-fit-earn .vf-main,
  body.vf-mobile-fit-radar .vf-main,
  body.vf-mobile-fit-convert .vf-main,
  body.vf-mobile-fit-earn .vf-content,
  body.vf-mobile-fit-radar .vf-content,
  body.vf-mobile-fit-convert .vf-content,
  body.vf-mobile-fit-earn .vf-page,
  body.vf-mobile-fit-radar .vf-page,
  body.vf-mobile-fit-convert .vf-page{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Keep the fixed mobile navigation inside the physical viewport. */
  body.vf-mobile-fit-earn .mobile-nav,
  body.vf-mobile-fit-radar .mobile-nav,
  body.vf-mobile-fit-convert .mobile-nav,
  body.vf-mobile-fit-earn .vf-mobile-nav,
  body.vf-mobile-fit-radar .vf-mobile-nav,
  body.vf-mobile-fit-convert .vf-mobile-nav{
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    box-sizing:border-box !important;
  }

  body.vf-mobile-fit-earn .mobile-nav a,
  body.vf-mobile-fit-radar .mobile-nav a,
  body.vf-mobile-fit-convert .mobile-nav a,
  body.vf-mobile-fit-earn .vf-mobile-nav a,
  body.vf-mobile-fit-radar .vf-mobile-nav a,
  body.vf-mobile-fit-convert .vf-mobile-nav a{
    min-width:0 !important;
  }

  /* ---------------- Earn ---------------- */
  body.vf-mobile-fit-earn #vfEarnV1{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-bottom:110px !important;
    overflow-x:hidden !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .earn-hero,
  body.vf-mobile-fit-earn #vfEarnV1 .earn-section,
  body.vf-mobile-fit-earn #vfEarnV1 .summary,
  body.vf-mobile-fit-earn #vfEarnV1 .products,
  body.vf-mobile-fit-earn #vfEarnV1 .composer,
  body.vf-mobile-fit-earn #vfEarnV1 .earn-card,
  body.vf-mobile-fit-earn #vfEarnV1 .return,
  body.vf-mobile-fit-earn #vfEarnV1 .steps,
  body.vf-mobile-fit-earn #vfEarnV1 .contract,
  body.vf-mobile-fit-earn #vfEarnV1 .history-shell{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .composer,
  body.vf-mobile-fit-earn #vfEarnV1 .products{
    grid-template-columns:minmax(0,1fr) !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .summary{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .assets{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .return{
    overflow:hidden !important;
    padding:20px 18px !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .return > .metric,
  body.vf-mobile-fit-earn #vfEarnV1 .return .metric{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:12px !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .metric span,
  body.vf-mobile-fit-earn #vfEarnV1 .metric b,
  body.vf-mobile-fit-earn #vfEarnV1 .metric strong,
  body.vf-mobile-fit-earn #vfEarnV1 .maturity,
  body.vf-mobile-fit-earn #vfEarnV1 .maturity * ,
  body.vf-mobile-fit-earn #vfEarnV1 .foundation-copy{
    min-width:0 !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    white-space:normal !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .amount{
    width:100% !important;
    min-width:0 !important;
  }

  body.vf-mobile-fit-earn #vfEarnV1 .amount input{
    min-width:0 !important;
    width:100% !important;
  }

  /* ---------------- USDT Radar ---------------- */
  body.vf-mobile-fit-radar .vf-page-head,
  body.vf-mobile-fit-radar .vf-card,
  body.vf-mobile-fit-radar .reward-grid,
  body.vf-mobile-fit-radar .hero{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  body.vf-mobile-fit-radar .vf-page-head{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:12px !important;
  }

  body.vf-mobile-fit-radar .vf-page-head > div{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  body.vf-mobile-fit-radar .vf-title{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  body.vf-mobile-fit-radar .vf-sub{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  body.vf-mobile-fit-radar .vf-card{
    overflow:hidden !important;
  }

  body.vf-mobile-fit-radar .radar{
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:330px !important;
    min-height:330px !important;
    margin:12px 0 10px !important;
    border-radius:24px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  /* Inline desktop positions are deliberately overridden on phones. */
  body.vf-mobile-fit-radar .radar .coin-orb{
    width:64px !important;
    height:64px !important;
    font-size:24px !important;
    border-radius:50% !important;
  }

  body.vf-mobile-fit-radar .radar .coin-orb.btc{
    left:8% !important;
    right:auto !important;
    top:12% !important;
    bottom:auto !important;
  }

  body.vf-mobile-fit-radar .radar .coin-orb.eth{
    right:8% !important;
    left:auto !important;
    top:12% !important;
    bottom:auto !important;
  }

  body.vf-mobile-fit-radar .radar .coin-orb.sol{
    left:10% !important;
    right:auto !important;
    bottom:10% !important;
    top:auto !important;
  }

  body.vf-mobile-fit-radar .radar .coin-orb.usdt{
    right:10% !important;
    left:auto !important;
    bottom:10% !important;
    top:auto !important;
  }

  body.vf-mobile-fit-radar .radar .radar-core{
    position:absolute !important;
    width:74px !important;
    height:74px !important;
    left:50% !important;
    right:auto !important;
    top:50% !important;
    bottom:auto !important;
    margin:0 !important;
    transform:translate(-50%,-50%) !important;
    font-size:27px !important;
  }

  body.vf-mobile-fit-radar .radar-dot.d1{left:31% !important;top:40% !important}
  body.vf-mobile-fit-radar .radar-dot.d2{right:29% !important;top:31% !important}
  body.vf-mobile-fit-radar .radar-dot.d3{right:31% !important;bottom:25% !important}
  body.vf-mobile-fit-radar .radar-dot.d4{left:34% !important;bottom:28% !important}

  body.vf-mobile-fit-radar .reward-grid{
    grid-template-columns:1fr !important;
  }

  body.vf-mobile-fit-radar .hero{
    grid-template-columns:1fr !important;
    min-height:0 !important;
  }

  body.vf-mobile-fit-radar .hero .v-orb{
    justify-self:center !important;
  }

  /* ---------------- Convert custom picker ---------------- */
  body.vf-mobile-fit-convert .vf-convert-native-mobile-hidden{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-width:1px !important;
    min-height:1px !important;
    opacity:0 !important;
    pointer-events:none !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    white-space:nowrap !important;
  }

  .vf-mobile-convert-trigger{
    width:100%;
    min-height:52px;
    border:1px solid rgba(30,39,68,.12);
    border-radius:14px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:#fbfbfe;
    color:#18213a;
    font:inherit;
    text-align:left;
    box-sizing:border-box;
    cursor:pointer;
  }

  .vf-mobile-convert-trigger:focus-visible{
    outline:0;
    border-color:rgba(101,72,223,.5);
    box-shadow:0 0 0 3px rgba(101,72,223,.08);
  }

  .vf-mobile-convert-trigger .vf-mobile-convert-value{
    min-width:0;
    flex:1;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-weight:750;
  }

  .vf-mobile-convert-trigger .vf-mobile-convert-chevron{
    flex:0 0 auto;
    color:#6849df;
    font-size:18px;
    line-height:1;
  }

  .vf-mobile-convert-picker{
    position:fixed;
    inset:0;
    z-index:100000;
    display:none;
    align-items:flex-end;
    justify-content:center;
    padding:0;
    background:rgba(15,23,42,.42);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }

  .vf-mobile-convert-picker.open{
    display:flex;
  }

  .vf-mobile-convert-sheet{
    width:100%;
    max-width:100%;
    max-height:min(78vh,700px);
    display:flex;
    flex-direction:column;
    background:#fff;
    border-radius:25px 25px 0 0;
    box-shadow:0 -20px 60px rgba(20,28,58,.20);
    overflow:hidden;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }

  .vf-mobile-convert-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:17px 18px 12px;
    border-bottom:1px solid rgba(24,33,56,.08);
  }

  .vf-mobile-convert-sheet-head strong{
    color:#18213a;
    font-size:17px;
  }

  .vf-mobile-convert-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:12px;
    background:#f2f4f9;
    color:#5d6880;
    font-size:24px;
    line-height:1;
  }

  .vf-mobile-convert-search-wrap{
    padding:10px 14px 8px;
  }

  .vf-mobile-convert-search{
    width:100%;
    height:46px;
    border:1px solid rgba(30,39,68,.10);
    border-radius:13px;
    padding:0 13px;
    background:#f7f8fc;
    color:#18213a;
    font-size:15px;
    outline:0;
    box-sizing:border-box;
  }

  .vf-mobile-convert-options{
    min-height:0;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    padding:6px 12px 14px;
  }

  .vf-mobile-convert-option{
    width:100%;
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid rgba(30,39,68,.08);
    border-radius:15px;
    padding:10px 13px;
    margin:7px 0;
    background:#fff;
    color:#18213a;
    text-align:left;
    font:inherit;
  }

  .vf-mobile-convert-option span{
    min-width:0;
    overflow-wrap:anywhere;
    font-weight:760;
  }

  .vf-mobile-convert-option i{
    flex:0 0 auto;
    width:23px;
    height:23px;
    border:2px solid #b9c0cf;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    font-style:normal;
    font-size:12px;
  }

  .vf-mobile-convert-option.selected{
    border-color:rgba(104,73,223,.35);
    background:#f5f2ff;
  }

  .vf-mobile-convert-option.selected i{
    border-color:#6849df;
    background:#6849df;
  }

  .vf-mobile-convert-empty{
    padding:30px 16px;
    text-align:center;
    color:#7b8498;
    font-size:13px;
  }

  body.vf-mobile-convert-picker-open{
    overflow:hidden !important;
    touch-action:none;
  }
}

@media(min-width:931px){
  .vf-mobile-convert-trigger,
  .vf-mobile-convert-picker{
    display:none !important;
  }
}

